summary refs log tree commit diff
path: root/Completion/Debian/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-12-14 12:58:32 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-12-14 12:58:32 +0000
commit4264cab64603cf123a5aa496389dcdb11d1faf55 (patch)
tree4deec0c5306eaeb07d288405ae722d6cc3db90fc /Completion/Debian/Command
parent346c4c46cc976a38206f3933029675e209b249eb (diff)
downloadzsh-4264cab64603cf123a5aa496389dcdb11d1faf55.tar.gz
zsh-4264cab64603cf123a5aa496389dcdb11d1faf55.tar.xz
zsh-4264cab64603cf123a5aa496389dcdb11d1faf55.zip
29783: _update-alternatives: Add more options.
Diffstat (limited to 'Completion/Debian/Command')
-rw-r--r--Completion/Debian/Command/_update-alternatives38
1 files changed, 24 insertions, 14 deletions
diff --git a/Completion/Debian/Command/_update-alternatives b/Completion/Debian/Command/_update-alternatives
index dd1d4fce3..ccf5084bf 100644
--- a/Completion/Debian/Command/_update-alternatives
+++ b/Completion/Debian/Command/_update-alternatives
@@ -16,11 +16,21 @@ _arguments -C \
   '--version' \
   '--altdir:altdir:_files -/' \
   '--admindir:admindir:_files -/' \
+  '--log:log file:_files -/' \
+  '--force' \
+  '--skip-auto' \
   '--install:*::alt:= ->install' \
   '--remove:*::alt:= ->remove' \
-  '--auto:name:_files -W $alterdir' \
-  '--display:name:_files -W $alterdir' \
-  '--config:name:_files -W $alterdir' && return
+  '--remove-all:name:_files -W "$alterdir"' \
+  '--auto:name:_files -W "$alterdir"' \
+  '--display:name:_files -W "$alterdir"' \
+  '--query:name:_files -W "$alterdir"' \
+  '--list:name:_files -W "$alterdir"' \
+  '--get-selections' \
+  '--set-selections' \
+  '--config:name:_files -W "$alterdir"' \
+  '--set:name:_files -W "$alterdir":path:_files -/' \
+  '--all' && return
 
 while true; do
   case "$state" in
@@ -28,29 +38,29 @@ while true; do
       _call_function ret _update_alternatives_$state && return ret
       state=
       _arguments -C \
-	'1:link:_files' \
-	'2:name:_files -W $alterdir' \
-	'3:path:_files' \
-	'--slave:*::more:= ->islave' && return
+        '1:link:_files' \
+        '2:name:_files -W "$alterdir"' \
+        '3:path:_files' \
+        '--slave:*::more:= ->islave' && return
       [[ -z $state ]] && return 1
     ;;
 
     install)
       _call_function ret _update_alternatives_$state && return ret
       _arguments -C \
-	'1:link:_files' \
-	'2:name:_files -W $alterdir' \
-	'3:path:_files' \
-	'4:priority:' \
-	'--slave:*::slave:= ->islave' && return
+        '1:link:_files' \
+        '2:name:_files -W "$alterdir"' \
+        '3:path:_files' \
+        '4:priority:' \
+        '--slave:*::slave:= ->islave' && return
       [[ -z $state ]] && return 1
     ;;
 
     remove)
       _call_function ret _update_alternatives_$state && return ret
       _arguments \
-	'1:name:_files -W $alterdir' \
-	'2:path:_files'
+        '1:name:_files -W "$alterdir"' \
+        '2:path:_files'
       return
     ;;