From cbacbe862fa002292dac19185bb5f81d27125930 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 13 Feb 2015 09:40:54 +0000 Subject: [PATCH] Change the bracket-type for the Git branch display. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 4cf8f8c..37d4c59 100644 --- a/.bashrc +++ b/.bashrc @@ -20,7 +20,7 @@ export PATH=/usr/local/bin:/usr/local/sbin:${PATH} # A useful prompt #-------------------------------------------------------------------------------- parse_git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/' } export PS1="[\u@\h \W \$(parse_git_branch)]\\$ " export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'