in GNU/Linux

root bash autocomplete

This is the way to enable autocomplete in root’s bash:

sudo cp ~/.bash_aliases /root/.bash_aliases

sudo vim /root/.bashrc

Search following lines and uncomment them all: (remove the #’s)
Code:
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

Share