Skip to content

Instantly share code, notes, and snippets.

@curiouslychase
Created July 29, 2014 17:41
Show Gist options
  • Select an option

  • Save curiouslychase/1ea9031b43329210602a to your computer and use it in GitHub Desktop.

Select an option

Save curiouslychase/1ea9031b43329210602a to your computer and use it in GitHub Desktop.
commandprompt
# Make that Command Prompt look good
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWSTASHSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
usrcolor='\e[0;31m'
dircolor='\e[m:\e[1;34m'
gitcolor='\e[1;32m'
closer='\e[m'
gitstatus='$(__git_ps1 " %s")'
PS1="[\[$usrcolor\]\u\[$dircolor\]\w\[$closer\]]\[$gitcolor\]\[$gitstatus\]\[$closer\]\n> "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment