summaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-01-24 16:09:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-24 16:09:04 +0100
commit7a136f317c37e81c0d64f7e14a276935f6b9cc72 (patch)
tree7de89ae028c4ab4330f9407cfbbbef6bedd9dde6 /bashrc
parent870277e1bd012ed21e8aa9192a8682d96f2f1172 (diff)
downloadbin-7a136f317c37e81c0d64f7e14a276935f6b9cc72.zip
bin-7a136f317c37e81c0d64f7e14a276935f6b9cc72.tar.gz
bashrc: colorize git branch in PROMPT
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 4efabea..a74b7a0 100644
--- a/bashrc
+++ b/bashrc
@@ -11,7 +11,7 @@ if [ `whoami` = "root" ]; then # effective uid
else
# export PS1='\[\033[01;47;31m\]\h\[\033[40;34m\] \u \[\033[37m\]\W $(parse_git_branch) \$ \[\033[00m\]'
# export PS1='\033[01;33m\u\033[01;35m@\033[00;31m\h\033[00m:\033[0;33m \w $(parse_git_branch) \033[0m\$ '
- export PS1='\033[01;33m\u\033[01;35m@\033[00;31m\h\033[00m:\033[0;33m \W $(parse_git_branch) \033[0m\$ '
+ export PS1='\033[01;33m\u\033[01;35m@\033[00;31m\h\033[00m:\033[0;33m \W \033[01;35m$(parse_git_branch)\033[0;33m \033[0m\$ '
fi
PS2='> '
unset PROMPT_COMMAND