![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/root/usr/share/bash-completion/completions/ |
# postconf(1) completion -*- shell-script -*- _postconf() { local cur prev words cword _init_completion || return local eqext case $prev in -b|-t) _filedir return ;; -c) _filedir -d return ;; -e) cur=${cur#[\"\']} eqext='=' ;; esac if [[ $cur == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) ) return fi local len=${#cur} idx=0 pval for pval in $( /usr/sbin/postconf 2>/dev/null | cut -d ' ' -f 1 ); do if [[ "$cur" == "${pval:0:$len}" ]]; then COMPREPLY[$idx]="$pval$eqext" idx=$(($idx+1)) fi done } && complete -F _postconf postconf # ex: filetype=sh