Improved rpm macro completion.

This commit is contained in:
Ville Skyttä 2009-01-11 15:09:54 +02:00
parent 9b92ded2e5
commit 639ad34a1d
2 changed files with 4 additions and 2 deletions

View File

@ -1928,8 +1928,9 @@ _rpm()
;; ;;
--eval) --eval)
# get a list of macros # get a list of macros
COMPREPLY=( $( sed -ne 's|^\(%'${cur#\%}'[^ '$'\t'']*\).*$|\1|p' \ COMPREPLY=( $( rpm --showrc | sed -ne \
/usr/lib/rpm/macros ) ) 's/^-\?[0-9]\+[:=][[:space:]]\+\('${cur#%}'[^[:space:](]*\).*/\1/p' ) )
COMPREPLY=( "${COMPREPLY[@]/#/%}" )
return 0 return 0
;; ;;
--pipe) --pipe)

1
debian/changelog vendored
View File

@ -52,6 +52,7 @@ bash-completion (200811xx) UNRELEASED; urgency=low
(Closes: #272660) (Closes: #272660)
* Added JPEG 2000 files to display completion, thanks to Bastien Nocera * Added JPEG 2000 files to display completion, thanks to Bastien Nocera
(RHBZ: #304771) (RHBZ: #304771)
* Improved rpm macro completion.
* Merge from Gentoo: * Merge from Gentoo:
- fix 'find' completion so that it properly completes on -?(i)whilename. - fix 'find' completion so that it properly completes on -?(i)whilename.
Patch by Ciaran McCreesh. Patch by Ciaran McCreesh.