Website http://brew.sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
brew install bash-completion brew install nvm
|
~/.bash_profile
if [ -f ~/.bashrc ]; then source ~/.bashrc fi
if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi
export NVM_DIR=~/.nvm . $(brew --prefix nvm)/nvm.sh
alias l='ls' alias ll='ls -la'
export CLICOLOR=1 export LSCOLORS=dxfxcxdxbxegedabagacad
export PS1='\u@\H:\w$ '
|
Issues
遇到git不會出現auto complete
有可能是系統原本就有安裝過git,這個時候就需要使用brew link
建立soft link使用brew所安裝的git。
brew link --overwrite git
|