Server IP : 103.119.228.120 / Your IP : 3.128.201.207 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/share/zsh/5.0.2/functions/ |
Upload File : |
#compdef locate mlocate slocate # Decide if we are using mlocate or slocate. local ltype basename=${words[1]:t} input # If we can't, use this guess. local best_guess=mlocate case $basename in ([ms]locate) ltype=$basename ;; (locate) input="$(_call_program locate $words[1] -V 2>&1)" case $input in (*mlocate*) ltype=mlocate ;; (*(#i)secure locate*) ltype=slocate ;; (*(#i)gnu locate*|*findutils*gnu*) ltype=gnu ;; (*illegal option*) if [[ $OSTYPE == (freebsd|openbsd|dragonfly|darwin)* ]]; then ltype=bsd else ltype=$best_guess fi ;; # guess (*) ltype=$best_guess ;; esac ;; (*) # too dangerous to run: guess ltype=$best_guess esac case $ltype in (mlocate) # actually, -d can take a colon-separate list # -r/--regexp mean no normal arguments, so shouldn't complete # -m and --mmap are ignored, so don't bother # -s and --stdio likewise _arguments -s -S : \ {-b,--basename}'[match only the basename of files in the database]' \ {-c,--count}'[output the number of matching entries]' \ {-d,--database=}'[use alternative database]:database:_files' \ {-e,--existing}'[restrict display to existing files]' \ {-L,--follow}'[follow symbolic links to find existing files (default)]' \ {-h,--help}'[show help]' \ {-i,--ignore-case}'[ignore case distinctions in patterns]' \ {-l,-n,--limit=}'[limit search results]:file limit: ' \ {-P,-H,--nofollow}'[don'\''t follow symbolic links]' \ {-0,--null}'[output separated by NUL characters]' \ {-S,--statistics}'[show database statistics]' \ {-q,--quiet}'[don'\''t report errors]' \ {-r,--regexp=}'[search for given basic regexp]:basic regexp: ' \ --regex'[patterns are extended regexps]' \ {-V,--version}'[show version]' \ {-w,--wholename}'[match entire file path (default)]' \ '*:pattern: ' ;; (slocate) # -d can take path # -e can take a comma-separated list of directories. # -f should complete list of file system types like mount _arguments -s -S : \ -u'[create slocate database starting at path /]' \ -U'[create slocate database starting at given path]:directory:_files -/' \ -c'[parse GNU locate updatedb with -u, -U]' \ -e'[exclude directories with -u, -U]:directories:_files -/' \ -f'[exclude file system types from db with -u, -U]:file system:_file_systems' \ -l'[security level]:level:(0 1)' \ -q'[quiet mode]' \ -n'[limit search results]:file limit: ' \ -i'[case insensitive search]' \ {-r,--regexp=}'[use basic regular expression]:regexp: ' \ {-o,--output=}'[specify database to create]:database:_files' \ {-d,--database=}'[specify database to search]:database:_files' \ {-h,--help}'[display help]' \ {-v,--verbose}'[display files when creating database]' \ {-V,--version}'[display version]' \ '*:pattern: ' ;; (gnu) _arguments -s : \ {-d,--database=}'[use alternative database]:database:_files' \ {-e,--existing}'[restrict display to existing files]' \ {-E,--non-existing}'[allow display of nonexistent files (default)]' \ {-i,--ignore-case}'[ignore case distinctions in patterns]' \ {-w,--wholename}'[match entire file path (default)]' \ {-b,--basename}'[match only the basename of files in the database]' \ {-l,-n,--limit=}'[limit search results]:file limit: ' \ {-S,--statistics}'[show database statistics]' \ {-0,--null}'[output separated by NUL characters]' \ {-c,--count}'[output the number of matching entries]' \ {-P,-H,--nofollow}'[don'\''t follow symbolic links]' \ {-L,--follow}'[follow symbolic links to find existing files (default)]' \ {-A,-all}'[match all arguments instead of at least one]' \ {-p,--print}'[include search results with statistics or count]' \ {-r,--regex=}'[patterns are regular expressions]:basic regexp: ' \ --regextype='[select type of regular expression]' \ {-V,--version}'[show version]' \ --help'[show help]' \ '*:pattern: ' ;; (bsd) _arguments -s -S -A '-*' \ '(-S)-0[separate file names by NUL characters]' \ '(- *)-S[show database statistics and exit]' \ '(-S)-c[output the number of matching file names]' \ '(-S)*-d[specify database to search]:database:_files' \ '(-S)-i[ignore case distinctions in pattern and database]' \ '(-S)-l[limit output to specified number of file names]:file limit: ' \ '(-S)-m[use mmap(2) instead of stdio(3) (default)]' \ '(-S)-s[use stdio(3) instead of mmap(2)]' \ '*:pattern: ' ;; esac