Server IP : 103.119.228.120 / Your IP : 3.149.231.122 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/ssl/share/zsh/5.0.2/functions/ |
Upload File : |
#compdef -subscript- local expl ind osuf=']' flags sep if [[ "$1" = -q ]]; then compquote osuf osuf+=' ' shift fi compset -P '\(([^\(\)]|\(*\))##\)' # remove subscript flags # Look for a dynamic name expansion. Completion only gives us # the stuff inside the square brackets; we need to find out what's # outside. We ought to check for quoting, really, but given we've # got to the subscript code " ~[" is pretty likely to be a dynamic # name expansion. Also expand in anything that looks like an assignment # or colon list. integer pos=$((CURSOR+1)) while [[ pos -gt 1 && $BUFFER[pos-1] != '[' ]]; do (( pos-- )); done if [[ $BUFFER[1,pos-1] = (|*[[:space:]:=]##)\~\[ ]]; then _dynamic_directory_name elif [[ "$PREFIX" = :* ]]; then _wanted characters expl 'character class' \ compadd -p: -S ':]' alnum alpha ascii blank cntrl digit graph \ lower print punct space upper xdigit elif compset -P '\('; then local match compset -S '\)*' if [[ $PREFIX = (#b)*([bns])(?|)(*) ]]; then local f=$match[1] d=$match[2] e=$match[2] v=$match[3] [[ $f = s && ${(Pt)${compstate[parameter]}} != scalar* ]] && return 1 if [[ -z $d ]]; then _message -e delimiters 'delimiter' return else case $d in (\() e=\);; (\[) e=\];; (\{) e=\};; esac if [[ $v != *$e* ]]; then case $f in (s) _message 'separator string';; (b|n) [[ $v = <-># ]] && _message 'number' || return 1;; esac [[ -n $v && $SUFFIX$ISUFFIX != *$e* ]] && _message 'delimiter' return 0 fi fi fi case ${(Pt)${compstate[parameter]}} in assoc*) flags=( '(R k K i I)r[any one value matched by subscript as pattern]' '(r k K i I)R[all values matched by subscript as pattern]' '(r R K i I)k[any one value where subscript matched by key as pattern]' '(r R k i I)K[all values where subscript matched by key as pattern]' '(r R k K I)i[any one key matched by subscript as pattern]' '(r R k K i)I[all keys matched by subscript as pattern]' 'e[interpret * or @ as a single key]' );; (|scalar*)) flags=( 'w[make subscripting work on words of scalar]' 's[specify word separator]' 'p[recognise escape sequences in subsequent s flag]' );& array*) flags=($flags 'e[interpret * or @ as a single key and use plain string matching]' 'n[Nth lowest/highest index with i/I/r/R flag]' 'b[begin with specified element]' '(r R k K i)I[highest index of value matched by subscript]' '(r R k K I)i[lowest index of value matched by subscript]' '(r k K i I)R[value matched by subscript at highest index]' '(R k K i I)r[value matched by subscript at lowest index]' );; esac _values -s '' 'subscript flags' $flags elif [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then local suf MATCH MBEGIN MEND local -a keys keys=(${${(kP)compstate[parameter]}//(#m)[\$\\\[\]\(\)\[\{\}]/\\$MATCH}) keys=(${keys//#%(#m)[*@]/(e)$MATCH}) [[ "$RBUFFER" != (|\\)\]* ]] && suf="$osuf" _wanted association-keys expl 'association key' \ compadd -Q -S "$suf" -a keys elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then local list i j ret=1 disp _tags indexes parameters while _tags; do if _requested indexes; then ind=( {1..${#${(P)${compstate[parameter]}}}} ) if zstyle -T ":completion:${curcontext}:indexes" verbose; then list=() for i in "$ind[@]"; do if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then list=( "$list[@]" "${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" ) else list=( "$list[@]" '' ) fi done zstyle -s ":completion:${curcontext}:indexes" list-separator sep || sep=-- zformat -a list " $sep " "$list[@]" disp=( -d list) else disp=() fi if [[ "$RBUFFER" = (|\\)\]* ]]; then _all_labels -V indexes expl 'array index' \ compadd -S '' "$disp[@]" -a ind && ret=0 else _all_labels -V indexes expl 'array index' \ compadd -S "$osuf" "$disp[@]" -a ind && ret=0 fi fi _requested parameters && _parameters && ret=0 (( ret )) || return 0 done return 1 else _dispatch -math- -math- fi