about summary refs log tree commit diff
path: root/Completion/Unix/Type/_users_on
blob: ccda5b8fb600870a765b15b69e7e1c43bf98210d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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