Add -E to rpm completion.

This commit is contained in:
Ville Skyttä 2009-01-11 15:22:31 +02:00
parent 68a14386ad
commit b8fb910305
2 changed files with 3 additions and 2 deletions

View File

@ -1913,7 +1913,7 @@ _rpm()
--import' -- $cur ) ) --import' -- $cur ) )
;; ;;
*) *)
COMPREPLY=( $( compgen -W '-b -e -F -i -q -t -U -V' \ COMPREPLY=( $( compgen -W '-b -e -E -F -i -q -t -U -V' \
-- $cur ) ) -- $cur ) )
;; ;;
esac esac
@ -1926,7 +1926,7 @@ _rpm()
_filedir -d _filedir -d
return 0 return 0
;; ;;
--eval) --eval|-E)
# get a list of macros # get a list of macros
COMPREPLY=( $( rpm --showrc | sed -ne \ COMPREPLY=( $( rpm --showrc | sed -ne \
's/^-\?[0-9]\+[:=][[:space:]]\+\('${cur#%}'[^[:space:](]*\).*/\1/p' ) ) 's/^-\?[0-9]\+[:=][[:space:]]\+\('${cur#%}'[^[:space:](]*\).*/\1/p' ) )

1
debian/changelog vendored
View File

@ -53,6 +53,7 @@ bash-completion (200811xx) UNRELEASED; urgency=low
* 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 (Ville Skyttä). * Improved rpm macro completion (Ville Skyttä).
* Add -E to rpm completion (Ville Skyttä).
* 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.