Skip to content

Instantly share code, notes, and snippets.

@fernandoflorez
Last active December 11, 2015 23:48
Show Gist options
  • Save fernandoflorez/4679388 to your computer and use it in GitHub Desktop.
Save fernandoflorez/4679388 to your computer and use it in GitHub Desktop.
Color_Off="\[\033[0m\]" # text reset
IBlack="\[\033[0;90m\]" # black
IRed="\[\033[0;91m\]" # red
IGreen="\[\033[0;92m\]" # green
IYellow="\[\033[0;93m\]" # yellow
# time vars
Time12h="\T"
PathShort="\w"
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
export PS1="${IBlack}${Time12h}${Color_Off} \$(declare -F __git_ps1 &>/dev/null && __git_ps1 '(%s) ')${IYellow}${PathShort}${Color_Off} \$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment