Linux style autocompletion on mac
Posted by drfrog
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 macportsAutocompletion 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.
