summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_w
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2017-09-12 23:22:34 +0200
committerAxel Beckert <abe@deuxchevaux.org>2017-09-12 23:22:34 +0200
commit4aaf06e6678dcead65d7226bd6bde3cffeb2cb2e (patch)
tree5c8e2ac2c9a85e2e6568aed7120372e6efa074ac /Completion/Unix/Command/_w
parentf33de64abf57611e59df72da230f3d0d6760c4c5 (diff)
parent6ff4787e830f8edb3a7e32490a88a131e4b62f7f (diff)
downloadzsh-4aaf06e6678dcead65d7226bd6bde3cffeb2cb2e.tar.gz
zsh-4aaf06e6678dcead65d7226bd6bde3cffeb2cb2e.zip
Merge tag 'zsh-5.4.2' into debian
Release 5.4.2
Diffstat (limited to 'Completion/Unix/Command/_w')
-rw-r--r--Completion/Unix/Command/_w47
1 files changed, 47 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_w b/Completion/Unix/Command/_w
new file mode 100644
index 000000000..8fb4154c7
--- /dev/null
+++ b/Completion/Unix/Command/_w
@@ -0,0 +1,47 @@
+#compdef w
+
+local args
+
+case $OSTYPE in
+ linux*)
+ args=(
+ '(H -f --from)'{-f,--from}'[toggle display of remote hostname]'
+ '(H -h)--no-header[suppress the heading]'
+ '(H -i --ip-addr)'{-i,--ip-addr}'[display IP address instead of hostname]'
+ '(H -o --old-style -s --short)'{-o,--old-style}'[old style output format]'
+ '(H -s --short -o --old-style)'{-s,--short}'[use short output format]'
+ '(H -u --no-current)'{-u,--no-current}'[ignore the username while figuring out the current process and cpu times]'
+ + H
+ '(-)--help[display help information]'
+ '(-)'{-V,--version}'[display version information]'
+ )
+ ;;
+ *bsd*|darwin*|dragonfly*)
+ args+=( '-i[sort output by idle time]' )
+ ;|
+ openbsd*)
+ args+=( '-a[translate network addresses into names]' )
+ ;|
+ (free|net)bsd*|dragonfly*)
+ args+=( '-n[show network addresses as numbers]' )
+ ;|
+ *bsd*|dragonfly*)
+ args+=(
+ '-M+[extract values from specified core]:core file:_files'
+ '-N+[extract name list from specified system]:system file:_files'
+ )
+ ;|
+ freebsd*|dragonfly*)
+ args+=( '-d[dump process list on a per controlling tty basis]' )
+ ;|
+ solaris*)
+ args+=( '!(-s -w -l)'{-l,-w}
+ '-s[short output form]'
+ '(-)-u[produce only the heading line]'
+ )
+ ;|
+esac
+
+_arguments -S -s \
+ '(--no-header)-h[suppress the heading]' \
+ '*:user:_users' $args