Created
October 2, 2013 13:36
-
-
Save lsaffie/6793887 to your computer and use it in GitHub Desktop.
.bash_profile
This implements git branch colours for 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
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
source $HOME/.bashrc | |
# Pimp out my prompt | |
NOCOLOR="\[\033[0m\]" | |
LOCALHOST="localhost" | |
BAR="----" | |
BLK="\[\033[0;30m\]" ; BLK1="\[\033[1;30m\]" #dark grey | |
RED="\[\033[0;31m\]" ; RED1="\[\033[1;31m\]" | |
GRN="\[\033[0;32m\]" ; GRN1="\[\033[1;32m\]" | |
YEL="\[\033[0;33m\]" ; YEL1="\[\033[1;33m\]" | |
BLU="\[\033[0;34m\]" ; BLU1="\[\033[1;34m\]" | |
PUR="\[\033[0;35m\]" ; PUR1="\[\033[1;35m\]" | |
AQA="\[\033[0;36m\]" ; AQA1="\[\033[1;36m\]" | |
GRY="\[\033[0;37m\]" ; GRY1="\[\033[1;37m\]" #white | |
WHT="\[\033[0;38m\]" ; WHT1="\[\033[1;38m\]" #white | |
PS1="\n$BLK1$BAR[$AQA1\u@\h${BLK1}] [$RED1\w${BLK1}]$BAR\n \$$NOCOLOR " | |
if [ $VIM ] ; then | |
PS1="(v) [$BLU\u@$LOCALHOST$BLU1\w$NOCOLOR]\\$ " | |
else | |
PS1="[$BLU\u@$LOCALHOST $BLU1\w$NOCOLOR\$(__git_ps1 ' ($PUR%s$NOCOLOR)')]\\$ " | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment