Linux style autocompletion on mac

Posted by drfrog Tue, 09 Jun 2009 01:14:20 GMT

i use the terminal a lot and really like the way linux does autocompletion of everything... I found this tutorial on how to make the mac terminal autocomplete like linux using macports
Autocompletion I like Ubuntu’s command line autocompletion. For example, typing rsync –pro” and pressing tab will result in rsync –progress. 1) Use MacPorts to install the bash-completion package: sudo port install bash-completion 2) Edit ~/.bash_profile to load the correct autocompletion script: if [ -f /opt/local/etc/bash_completion ]; then . /opt/local/etc/bash_completion fi Open a new terminal window, and commands should auto-complete according to the GNU specification.

Posted in ,  | no comments

Comments

(leave url/email »)

   Comment Markup Help Preview comment