Skip to content

Instantly share code, notes, and snippets.

@fogonthedowns
Created January 14, 2018 18:57
Show Gist options
  • Save fogonthedowns/829cffa0176dd7d54b3020c00f81dd83 to your computer and use it in GitHub Desktop.
Save fogonthedowns/829cffa0176dd7d54b3020c00f81dd83 to your computer and use it in GitHub Desktop.
.bash_profile
# 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