summary refs log tree commit diff
path: root/Completion/User/_users_on
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-26 14:26:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-26 14:26:08 +0000
commit2149b00fdb53ade99a5ec4f54004a677f08fe6c1 (patch)
tree6f1e86d9cbfacbec0fe4819b8276043fe67a39d2 /Completion/User/_users_on
parent5c85a426d9b0523cdc7ef9671ee79db44d1b8f54 (diff)
downloadzsh-2149b00fdb53ade99a5ec4f54004a677f08fe6c1.tar.gz
zsh-2149b00fdb53ade99a5ec4f54004a677f08fe6c1.tar.xz
zsh-2149b00fdb53ade99a5ec4f54004a677f08fe6c1.zip
Initial revision
Diffstat (limited to 'Completion/User/_users_on')
-rw-r--r--Completion/User/_users_on11
1 files changed, 11 insertions, 0 deletions
diff --git a/Completion/User/_users_on b/Completion/User/_users_on
new file mode 100644
index 000000000..920688089
--- /dev/null
+++ b/Completion/User/_users_on
@@ -0,0 +1,11 @@
+#autoload write
+
+local expl
+
+if which users >/dev/null; then
+  _description expl users logged on
+  compadd "$@" "$expl[@]" - $(users) && return 0
+else
+  # Other methods of finding out users logged on should be added here
+  return 1
+fi