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 # a separated list where each component of the list uses the same # function. # -n num : number of items in list [default is unlimited] # -s sep : specify separator [defaults to comma] # -d : duplicate values allowed local curcontext="$curcontext" nm="$compstate[nmatches]" pre qsep nosep minus local -a sep num pref suf end uniq dedup zparseopts -D -a opts s:=sep n:=num p:=pref i:=pref P:=pref I:=suf S:=suf q=suf r:=suf R:=suf C:=cont d=uniq M: J: X: x: (( $#cont )) && curcontext="${curcontext%:*}:$cont[2]" (( $#sep )) || sep[2]=, if (( $+suf[(r)-S] )); then end="${(q)suf[suf[(i)-S]+1]}" (( $#end )) && compset -S ${end}\* && suf=() && nosep=1 fi qsep="${sep[2]}" compquote -p qsep if (( ! $#uniq )); then (( $+pref[(r)-P] )) && pre="${(q)pref[pref[(i)-P]+1]}" dedup=( "${(@)${(@ps.$qsep.)PREFIX#$pre}[1,-2]}" "${(@)${(@ps.$qsep.)SUFFIX}[2,-1]}" ) [[ -n $compstate[quoting] ]] || dedup=( ${(Q)dedup} ) fi if (( $#num )) && compset -P $(( num[2] - 1 )) \*${(q)qsep}; then pref=() else (( ! nosep && (!$#num || num[2] > 1) )) && suf=( -S ${qsep} -r "$end[1]${(q)qsep[1]} \t\n\-" ) compset -S ${(q)qsep}\* && suf=() compset -P \*${(q)qsep} && pref=() fi (( minus = argv[(ib:2:)-] )) "${(@)argv[1,minus-1]}" "$opts[@]" -F dedup "$pref[@]" "$suf[@]" "${(@)argv[minus+1,-1]}"