Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Quick Tip:
Bash Completion for the PEAR Installer
Jun 01, 2005 @ 11:20:58

From Tobias Schlitt's weblog today:

I always wanted to have the PEAR commands get auto completed on my bash. Here is how it works:

complete -W "`pear 2>&1 | awk '{ORS=" "} /[a-zA-Z-]+ / {print 60}'`" -f pear

Simply run the command in your shell and/or add it to e.g. your .bashrc. You will have autocompletion for all PEAR Installer commands and for filenames in paralell.

Usually I'd have expected to get the stuff working using complete's "-C" option, this did not work for me, I got a list of all possible commands when typing , but neither a correct completion suggestion nor a completion.

tagged:

Link:


Trending Topics: