- _rpm(): perform path completion for --whatprovides if parameter contains a /
This commit is contained in:
parent
81a38ce1ec
commit
6e44048776
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# bash_completion - some programmable completion functions for bash 2.05a
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.175 2002/03/02 01:56:21 ianmacd Exp $
|
# $Id: bash_completion,v 1.176 2002/03/04 04:46:42 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -973,8 +973,12 @@ _rpm()
|
|||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--whatprovides)
|
--whatprovides)
|
||||||
|
if [[ "$cur" == */* ]]; then
|
||||||
|
_filedir
|
||||||
|
else
|
||||||
# complete on capabilities
|
# complete on capabilities
|
||||||
COMPREPLY=( $( rpm -qa --queryformat '%{providename}\n' | grep ^$cur ) )
|
COMPREPLY=( $( rpm -qa --queryformat '%{providename}\n' | grep ^$cur ) )
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
--whatrequires)
|
--whatrequires)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user