Skip to content

Instantly share code, notes, and snippets.

@sooheang
Last active July 2, 2018 07:02
Show Gist options
  • Select an option

  • Save sooheang/bbaf96748c9c56eb978947ec3db782bc to your computer and use it in GitHub Desktop.

Select an option

Save sooheang/bbaf96748c9c56eb978947ec3db782bc to your computer and use it in GitHub Desktop.
Setting

Terminal Setting

Install Brew

/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

Install 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\] '  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment