[Yum-devel] [PATCH 1/2] Add basic version completion.
Ville Skyttä
ville.skytta at iki.fi
Sat Apr 10 11:00:44 UTC 2010
---
etc/yum.bash | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/etc/yum.bash b/etc/yum.bash
index 966e33a..0fcba24 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -102,7 +102,7 @@ _yum()
;;
check-update|grouplist|makecache|provides|whatprovides|resolvedep|\
- search|version)
+ search)
return 0
;;
@@ -214,6 +214,13 @@ _yum()
fi
return 0
;;
+ version)
+ if [ "$prev" = version ] ; then
+ COMPREPLY=( $( compgen -W 'all installed available nogroups
+ grouplist groupinfo' -- "$cur" ) )
+ fi
+ return 0
+ ;;
esac
local split=false
--
1.7.0.1
More information about the Yum-devel
mailing list