about summary refs log tree commit diff
path: root/Completion/User/_users_on
blob: 04a834d53ee278a5a2f9f9edc82916a848d1c106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef write

local expl

_wanted users || return 1

if which users >/dev/null; then
  _loop users expl 'users logged on' \
      compadd "$@" - $(_call users users) && return 0
else
  # Other methods of finding out users logged on should be added here
  return 1
fi