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/thread-self/root/proc/self/root/usr/share/zsh/5.5.1/functions/ |
Upload File : |
#autoload local begin end ret=1 local -a args dict dicts dictwords expl if [[ $service = dict ]]; then args=( ${(kv)opt_args[(I)-([hpdauk]|-(host|port|database|noauth|user|key))]} ) fi if [[ -z $words[CURRENT] ]]; then _message -e dict 'dictionary word' return 1 elif [[ -z $SUFFIX ]]; then dictwords=( ${(z)${(f)"$(_call_program words dict $args -m -s prefix $PREFIX 2>/dev/null)"}} ) elif [[ -z $PREFIX ]]; then dictwords=( ${(z)${(f)"$(_call_program words dict $args -m -s suffix $SUFFIX 2>/dev/null)"}} ) else dictwords=( ${(z)${(f)"$(_call_program words dict $args -m -s regexp $PREFIX.\*$SUFFIX 2>/dev/null)"}} ) fi dictwords=( ${${dictwords#\"}%\"} ) dicts=( ${${(M)dictwords:#*:}%:} ) if zstyle -t ":completion:${curcontext}:words" separate-sections; then _tags words.$^dicts while _tags; do for dict in $dicts; do if _requested words.$dict expl "word from $dict"; then (( begin=${dictwords[(i)$dict:]} + 1 )) end=${dictwords[(ib.begin.)*:]} [[ $end = 1 ]] && end=$#dictwords compadd "$expl[@]" "$@" -M 'm:{a-zA-Z}={A-Za-z} r:|=*' -a - \ 'dictwords[begin,end]' && ret=0 fi done (( ret )) || break done return 1 else _wanted words expl word compadd -M 'm:{a-zA-Z}={A-Za-z} r:|=*' "$@" - \ ${dictwords:#*:} fi