[yum-commits] Branch 'yum-3_2_X' - etc/yum.bash
Ville Skyttä
scop at osuosl.org
Sat Nov 5 09:26:25 UTC 2011
etc/yum.bash | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 20fbe11783a3af6b16f94a48a1930ecd47e19c4d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Nov 5 11:24:54 2011 +0200
Offer --options only when completing something that starts with a slash.
diff --git a/etc/yum.bash b/etc/yum.bash
index 8760a9b..2f978c4 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -370,7 +370,11 @@ _yum()
$split && return 0
- COMPREPLY=( $( compgen -W '$( _yum_baseopts ) ${cmds[@]}' -- "$cur" ) )
+ if [[ $cur == -* ]] ; then
+ COMPREPLY=( $( compgen -W '$( _yum_baseopts )' -- "$cur" ) )
+ return 0
+ fi
+ COMPREPLY=( $( compgen -W '${cmds[@]}' -- "$cur" ) )
} &&
complete -F _yum -o filenames yum yummain.py
More information about the Yum-commits
mailing list