Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
From: Carsten Hoeger (choegersuse.de)
Date: Thu May 02 2002 - 14:38:06 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]



    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

    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

    -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org

    iD8DBQE80ZWeeYi2qGaRyUoRAg0KAJ97OJb2LHpDaKIT1qhvPcaZmCp1LgCdFaTw VHo+FOSU2gS/bUMR6j9Ky9U= =tha0 -----END PGP SIGNATURE-----

    - To unsubscribe, send mail to majordomopostfix.org with content (not subject): unsubscribe postfix-users