Current Path : /proc/2/root/usr/local/ssl/share/zsh/4.3.11/functions/ |
Current File : //proc/2/root/usr/local/ssl/share/zsh/4.3.11/functions/_ptree |
#compdef ptree _ptree() { local curcontext="$curcontext" context state line ret=1 typeset -A opt_args _arguments -s \ '-a[all processes]' \ '-c[show contract memberships]' \ '-z[show processes in zone]:zone:($(zoneadm list))' \ '*:pid or user:->pidoruser' && ret=0 if [[ $ret -ne 0 ]]; then _alternative \ 'users:logged-in user:compadd ${$(who -q)\:#(users=*|\#)}' \ 'pids:pid:_pids' ret=$? fi return $ret } _ptree "$@"