CVS: moonbase/mail/postfix/profile.d postfix.rc,NONE,1.1
sofar at lunar-linux.org
sofar at lunar-linux.org
Sat Sep 27 20:30:46 GMT 2003
Update of /var/cvs/lunar/moonbase/mail/postfix/profile.d
In directory dbguin.lunar-linux.org:/tmp/cvs-serv4086/profile.d
Added Files:
postfix.rc
Log Message:
Moving tabcompletion out of bash module
--- NEW FILE: postfix.rc ---
# Turn on extended globbing
shopt -s extglob
function _postconf_ ()
{
local cmd=${COMP_WORDS[COMP_CWORD]}
local idx=0
local clen=${#cmd}
for pval in $(/usr/sbin/postconf | cut -d" " -f1); do
if [ "$cmd" == "${pval:0:$clen}" ]; then
COMPREPLY[$idx]=$pval
idx=$[$idx+1]
fi
done
}
complete -F _postconf_ postconf
More information about the Lunar-commits
mailing list