CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/proc/2/cwd/usr/local/ssl/share/zsh/4.3.11/functions/
Upload File :
Current File : //proc/2/root/proc/2/cwd/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 "$@"

Copyright 2K16 - 2K18 Indonesian Hacker Rulez