about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:44:01 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:44:01 +0000
commitd22b763a633628e1ba99722be6eeaf4c0332f0af (patch)
tree585978cbc338ffc130a956aefdecc5d6c98c58c6
parentde194a01dc75718ca061204da1e1737ecbd42542 (diff)
downloadzsh-d22b763a633628e1ba99722be6eeaf4c0332f0af.tar.gz
zsh-d22b763a633628e1ba99722be6eeaf4c0332f0af.tar.xz
zsh-d22b763a633628e1ba99722be6eeaf4c0332f0af.zip
moved from Completion/User/_users_on
-rw-r--r--Completion/Unix/Type/_users_on11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_users_on b/Completion/Unix/Type/_users_on
new file mode 100644
index 000000000..ccda5b8fb
--- /dev/null
+++ b/Completion/Unix/Type/_users_on
@@ -0,0 +1,11 @@
+#compdef write
+
+local expl
+
+if (( $+commands[users] )); then
+  _wanted users expl 'users logged on' \
+      compadd "$@" - $(_call_program users users) && return 0
+else
+  # Other methods of finding out users logged on should be added here
+  return 1
+fi