hasen's tech life

Twitter: @hasen

OSX(Yosemite)でbash-completionを使えるようにする.

OSX(Yosemite)でbash-completionを使えるようにする.

$ brew install bash-completion
# 下記の表示が出るので~/.bashrcに追加する.
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then
    . $(brew --prefix)/etc/bash_completion
fi

$ vi ~/.bashrc
++ Add the following lines to your ~/.bash_profile:
++ if [ -f $(brew --prefix)/etc/bash_completion ]; then
++     . $(brew --prefix)/etc/bash_completion
++ fi

参考: bash-completion