MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/zsh/4.2.5/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/zsh/4.2.5/functions/_user_at_host
#autoload

# Complete user/host combinations. Normally this looks for the style
# `users-hosts' for the tag `accounts'. A different tag may be given
# with `-t tag'.
# A `-' or `--' as the first argument is ignored.

local suf tag=accounts

if [[ "$1" = -t?* ]]; then
  tag="${1[3,-1]}"
  shift
elif [[ "$1" = -t ]]; then
  tag="$2"
  shift 2
fi

[[ "$1" = -(|-) ]] && shift

if [[ -prefix 1 *@ ]]; then
  local user=${PREFIX%%@*}

  compset -P 1 '*@'

  _wanted -C user-at hosts expl "host for $user" \
      _combination -s '[:@]' "${tag}" users-hosts users="$user" hosts "$@" -
else
  compset -S '@*' || suf="@"
  _wanted users expl "user" \
      _combination -s '[:@]' "${tag}" users-hosts users -S "$suf" -q "$@" -
fi

Anon7 - 2021