Answers
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install bash
brew install bash-completion
echo 'if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion; fi' >> ~/.bash_profile
sudo sh -c 'echo "/usr/local/bin/bash" >> /etc/shells'
chsh -s /usr/local/bin/bash
刚才少写了一行,要再装个bash才行……
嗯,你问我为神马不能简单装个bash-completion?因为OSX自带的bash版本太老了啊,新的bash-completion只支持bash 4.x,不支持OSX上的bash 3.2,所以只好这么着了。
轻语的乌鸦
answered 10 years, 3 months ago