Created
February 4, 2015 21:20
-
-
Save siakaramalegos/4a95921cc94c8c7d0afb to your computer and use it in GitHub Desktop.
Customized git bash profile
This file contains 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
# 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