Server IP : 51.89.169.208 / Your IP : 216.73.216.211 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/share/zsh/5.5.1/functions/ |
Upload File : |
#compdef -value- -array-value- -value-,-default-,-default- # You can customize completion for different parameters by writing # functions with the tag-line `#compdef -value-,<name>,<command>' where # <name> is the name of the parameter (or name-key when completing an # associative array value) and <command> is either `-default-' or the # name of the command from the command-line. if [[ "$service" != -value-,* ]]; then local strs ctx= strs=( -default- ) if [[ "$compstate[context]" != *value && -n "$_comp_command1" ]]; then ctx="${_comp_command}" strs=( "${_comp_command1}" "$strs[@]" ) [[ -n "$_comp_command2" ]] && strs=( "${_comp_command2}" "$strs[@]" ) fi _dispatch -value-,${compstate[parameter]},$ctx \ -value-,{${compstate[parameter]},-default-},${^strs} else if [[ "$compstate[parameter]" != *-* && "$compstate[context]" = array_value && "${(Pt)${compstate[parameter]}}" = assoc* ]]; then local expl if (( CURRENT & 1 )); then _wanted association-keys expl 'association key' \ compadd -k "$compstate[parameter]" else compstate[parameter]="${compstate[parameter]}-${words[CURRENT-1]}" _dispatch -value-,${compstate[parameter]}, \ -value-,{${compstate[parameter]},-default-},-default- fi else local pats if { zstyle -a ":completion:${curcontext}:" assign-list pats && [[ "$compstate[parameter]" = (${(j:|:)~pats}) ]] } || [[ "$PREFIX$SUFFIX" = *:* ]]; then compset -P '*:' compset -S ':*' _default -r '\-\n\t /:' "$@" else _default "$@" fi fi fi