about summary refs log tree commit diff
path: root/Completion/BSD/Command/_freebsd-update
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-08-12 10:37:30 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-08-12 10:37:30 +0000
commitb2e70921b06eee523071218c8919a27c7f4ce206 (patch)
treefc51fa290e22b0e92d96c70a769c7872dcbc106d /Completion/BSD/Command/_freebsd-update
parent6ce77ad7ba2195687114180bc8e5476f1f1212b7 (diff)
downloadzsh-b2e70921b06eee523071218c8919a27c7f4ce206.tar.gz
zsh-b2e70921b06eee523071218c8919a27c7f4ce206.tar.xz
zsh-b2e70921b06eee523071218c8919a27c7f4ce206.zip
25435: Baptiste Daroussin <baptiste.daroussin@gmail.com>:
new and improved BSD completions
unposted: fix Solaris completion .distfiles
Diffstat (limited to 'Completion/BSD/Command/_freebsd-update')
-rw-r--r--Completion/BSD/Command/_freebsd-update20
1 files changed, 20 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_freebsd-update b/Completion/BSD/Command/_freebsd-update
new file mode 100644
index 000000000..a47ac21d6
--- /dev/null
+++ b/Completion/BSD/Command/_freebsd-update
@@ -0,0 +1,20 @@
+#compdef freebsd-update
+
+local flags
+flags=(
+  '(cron)fetch[Fetch a compressed snapshot or update existing one]'
+  '(fetch)cron[Sleep rand(3600) seconds, and then fetch updates]'
+  '(install rollback)upgrade[Fetch files necessary for upgrading to a new release]'
+  '(upgrade rollback)install[Install the most recently fetched updates or upgrade]'
+  '(upgrade install)rollback[Uninstall the most recently installed updates]'
+)
+
+_arguments -s \
+  '-b[Operate on a system mounted at basedir]:basedir:_files -/' \
+  '-d[Store working files in workdir]:workdir:_files -/' \
+  '-f[Read configuration options from conffile]:conf file:_files' \
+  '-k[Trust an RSA key with SHA256 of KEY]:RSA key:' \
+  '-r[Specify the new release]:new release:' \
+  '-s[Fetch files from the specified server or server pool]:server:_hosts' \
+  '-f[Mail output of cron command, if any, to address]:address:' \
+  ':command:_values -S " " -w "commands" $flags[@]'