Last active
July 9, 2017 08:24
-
-
Save aliaksandr-s/083ad264a398de865e4b9454aee16451 to your computer and use it in GitHub Desktop.
Terminal prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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