Skip to content

Instantly share code, notes, and snippets.

@siakaramalegos
Created February 4, 2015 21: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 siakaramalegos/4a95921cc94c8c7d0afb to your computer and use it in GitHub Desktop.
Save siakaramalegos/4a95921cc94c8c7d0afb to your computer and use it in GitHub Desktop.
Customized git bash profile
# Enable tab completion
source ~/git-completion.bash
# colors!
Bgreen="\e[1;32m"
Bcyan="\e[1;36m"
Bpurple="\e[1;35m"
reset="\[\033[0m\]"
# Change command prompt
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt
# '\$(__git_ps1)' adds git-related stuff
# '\W' adds the name of the current directory
export PS1="$Bpurple\u$Bcyan\$(__git_ps1)$Bgreen \w \n $ $reset"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment