Fork me on GitHub
Nation Pigeon

Debian Bash Auto Completion

20th June 12 | Tags: , , ,

Install the bash auto completion package.

sudo apt-get install bash-completion

Uncomment the following in /etc/bash.bashrc to enable to auto completion. You will need to open a new terminal after doing this.

sudo vi /etc/bash.bashrc
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

You should now be able to hit tab and have commands automatically completed.
Try it with apt-get in<tab>

Categories: Linux

Leave a Reply

Copyright © 2007 ∞ Nation Pigeon - Designed by Peter Mayanrd
Theme Based on Black-Green - Fork it on GitHub