Autocompletion doesn't work while logged as root
When you try autocomplete commands logged as super user with "sudo su" (to install software with apt-get for example), by default this option is unavailable. To enable the autocomplete for root user you need uncomment the last 3 lines in your /root/bash.bashrc file or add them if not exist.
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Now, restart your bash:
$ bash --
Enjoy it!
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Now, restart your bash:
$ bash --
Enjoy it!
Comments
Post a Comment