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