summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpmi.bash-completion30
1 files changed, 27 insertions, 3 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index c6a06ce0..2f4760e0 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -68,7 +68,15 @@ _urpmi()
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
- --@(media|excludemedia|sortmedia))
+ --media)
+ _urpmi_medias
+ return 0
+ ;;
+ --excludemedia)
+ _urpmi_medias
+ return 0
+ ;;
+ --sortmedia)
_urpmi_medias
return 0
;;
@@ -116,7 +124,15 @@ _urpmq()
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
- --@(media|excludemedia|sortmedia))
+ --media)
+ _urpmi_medias
+ return 0
+ ;;
+ --excludemedia)
+ _urpmi_medias
+ return 0
+ ;;
+ --sortmedia)
_urpmi_medias
return 0
;;
@@ -180,7 +196,15 @@ _urpmf()
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
- --@(media|excludemedia|sortmedia))
+ --media)
+ _urpmi_medias
+ return 0
+ ;;
+ --excludemedia)
+ _urpmi_medias
+ return 0
+ ;;
+ --sortmedia)
_urpmi_medias
return 0
;;