|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse
porcupine.org)Date: Thu May 02 2002 - 15:20:49 CDT
This certainly ranks up there with the vi macros that highlight
Postfix main.cf parameters.
http://people.inf.elte.hu/fuji/vim/syntax/postfix.vim
Wietse
Carsten Hoeger:
Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> Hi,
>
> JFYI:
>
> I wrote a bash completion for the postconf command.
> It can be used to complete postfix main.cf parameters using postconf
> in the bash commandline.
> It requires bash 2.0 and higher.
>
> On SuSE Linux, just append it to /etc/profile.d/complete.bash.
>
> ------------------------------[...]------------------------------
> 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
> ------------------------------[...]------------------------------
>
>
> --
> With best regards,
>
> Carsten Hoeger
>
> SuSE, The Linux Experts, http://www.suse.com
>
> Key fingerprint = E3B6 7FDB 4800 0F22 DC09 EB2B 7988 B6A8 6691 C94A
-- End of PGP section, PGP failed!
-
To unsubscribe, send mail to majordomo
postfix.org with content
(not subject): unsubscribe postfix-users
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]