| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/bash-completion/completions/ |
Upload File : |
# postalias(1) and postmap(1) completion -*- shell-script -*-
_comp_cmd_postmap()
{
local cur prev words cword comp_args
_comp_initialize -- "$@" || return
case $prev in
-c)
_comp_compgen_filedir -d
return
;;
-[dq])
return
;;
esac
if [[ $cur == -* ]]; then
_comp_compgen_usage
return
fi
if [[ $cur == *:* ]]; then
compopt -o filenames
_comp_compgen -c "${cur#*:}" -- -f
else
local len=${#cur} pval
for pval in $(/usr/sbin/postconf -m 2>/dev/null); do
if [[ $cur == "${pval:0:len}" ]]; then
COMPREPLY+=("$pval:")
fi
done
if [[ ! ${COMPREPLY-} ]]; then
compopt -o filenames
_comp_compgen -- -f
fi
fi
} &&
complete -F _comp_cmd_postmap postmap postalias
# ex: filetype=sh