Skip to content

Instantly share code, notes, and snippets.

@hpgsantos
Last active February 21, 2018 18:27
Show Gist options
  • Save hpgsantos/4d9944a6cfd99b22bd0d8d75c7d7404b to your computer and use it in GitHub Desktop.
Save hpgsantos/4d9944a6cfd99b22bd0d8d75c7d7404b to your computer and use it in GitHub Desktop.
sudo apt-get install bash-completion
sudo apt-get install --reinstall bash-completion
sudo vi /etc/bash.bashrc
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
sudo -s
sudo source /etc/bash.bashrc
sudo -s source /etc/bash.bashrc
source /bin/bash /etc/bash.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment