Skip to content

Instantly share code, notes, and snippets.

@kumikoda
Created January 17, 2018 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumikoda/2ceea3bad375d25baef8e0b0d3cbcc8f to your computer and use it in GitHub Desktop.
Save kumikoda/2ceea3bad375d25baef8e0b0d3cbcc8f to your computer and use it in GitHub Desktop.
prompt
# a simple two line prompt with color
source ~/git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=1
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
cyan='\e[0;36m'
blue='\e[0;34m'
green='\e[0;32m'
reset="\e[0m"
PS1="${blue}\u@\h ${cyan}\w${green} \$(__git_ps1) ${reset}\n\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment