Skip to content

Instantly share code, notes, and snippets.

@aliaksandr-s
Last active July 9, 2017 08:24
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 aliaksandr-s/083ad264a398de865e4b9454aee16451 to your computer and use it in GitHub Desktop.
Save aliaksandr-s/083ad264a398de865e4b9454aee16451 to your computer and use it in GitHub Desktop.
Terminal prompt
# colors
COLOR_YELLOW=`echo -e "\033[0;33m"`
COLOR_GREEN=`echo -e "\033[01;32m"`
COLOR_BLUE=`echo -e "\033[01;34m"`
COLOR_WHITE=`echo -e "\033[0;37m"`
COLOR_RESET=`echo -e "\033[00m"`
# Show git repo status
export GIT_PS1_SHOWDIRTYSTATE=1
# custom terminal prompt
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[${COLOR_BLUE}\]\W\[${COLOR_GREEN}\]$(__git_ps1) \[${COLOR_BLUE}\]\$\[${COLOR_RESET}\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment