about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix')
-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