about summary refs log tree commit diff
path: root/Completion/User/_users_on
diff options
context:
space:
mode:
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