Improved rpm macro completion.
This commit is contained in:
parent
9b92ded2e5
commit
639ad34a1d
@ -1928,8 +1928,9 @@ _rpm()
|
||||
;;
|
||||
--eval)
|
||||
# get a list of macros
|
||||
COMPREPLY=( $( sed -ne 's|^\(%'${cur#\%}'[^ '$'\t'']*\).*$|\1|p' \
|
||||
/usr/lib/rpm/macros ) )
|
||||
COMPREPLY=( $( rpm --showrc | sed -ne \
|
||||
's/^-\?[0-9]\+[:=][[:space:]]\+\('${cur#%}'[^[:space:](]*\).*/\1/p' ) )
|
||||
COMPREPLY=( "${COMPREPLY[@]/#/%}" )
|
||||
return 0
|
||||
;;
|
||||
--pipe)
|
||||
|
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -52,6 +52,7 @@ bash-completion (200811xx) UNRELEASED; urgency=low
|
||||
(Closes: #272660)
|
||||
* Added JPEG 2000 files to display completion, thanks to Bastien Nocera
|
||||
(RHBZ: #304771)
|
||||
* Improved rpm macro completion.
|
||||
* Merge from Gentoo:
|
||||
- fix 'find' completion so that it properly completes on -?(i)whilename.
|
||||
Patch by Ciaran McCreesh.
|
||||
|
Loading…
x
Reference in New Issue
Block a user