Skip to content

Instantly share code, notes, and snippets.

@henrytseng
Last active September 27, 2019 14:19
Show Gist options
  • Save henrytseng/31dd97198ff04eb040c74e3fe39f96f9 to your computer and use it in GitHub Desktop.
Save henrytseng/31dd97198ff04eb040c74e3fe39f96f9 to your computer and use it in GitHub Desktop.
Bash profile git branch
source $HOME/.bash_aliases
source $HOME/.ssh/iterm2-color.sh
# colors
PS1='\w\[\033[0;32m\]$( git branch 2> /dev/null | cut -f2 -d\* -s | sed "s/^ / [/" | sed "s/$/]/" )\[\033[0m\] \$ '
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment