From 79bcd7bc5292be94dd840a06a7f2a7f6a4fe6668 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 20 Feb 2015 14:27:47 +0000 Subject: [PATCH] Added colour to the Git branch prompt indicator. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 37d4c59..4f1410e 100644 --- a/.bashrc +++ b/.bashrc @@ -22,7 +22,7 @@ export PATH=/usr/local/bin:/usr/local/sbin:${PATH} parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/' } -export PS1="[\u@\h \W \$(parse_git_branch)]\\$ " +export PS1="[\u@\h \W \[\033[32m\]\$(parse_git_branch)\[\033[00m\]]\\$ " export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' #--------------------------------------------------------------------------------