/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install wget
$ brew install wget
- Install bash-completion
brew install bash bash-completion git
curl -o ~/.git-prompt.sh \
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
Then, add the following line to your ~/.bash_profile
source ~/.git-prompt.sh
- Add git lola
git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"
- Show git branch on terminal prompt
PS1='\[\033[32m\]\u \[\033[36m\]@ \h \w\[\033[32m\]$(__git_ps1)\n└─ \$ ▶\[\033[0m\] '