Created
December 10, 2017 00:13
-
-
Save ipolyzos/4618f01c8a629e29d7e7744cfa75ad52 to your computer and use it in GitHub Desktop.
install Bash autocompletion on maxosx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check default bash version installed | |
$ echo $BASH_VERSION | |
3.2.57(1)-release | |
# install a new version of bash since autocompletion is supported from version 4.1.x | |
$ brew install bash | |
# make sure the new bash verison is added on /etc/shells | |
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells | |
# change default shell being used | |
$ chsh -s /usr/local/bin/bash | |
# confirm the change of the default shell | |
$ echo $BASH_VERSION | |
4.4.12(1)-release | |
# install Bash autocompletion with brew | |
$ brew install bash-completion | |
$ brew tap homebrew/completions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment