From a0294581505c9d0ceb32897d599175b18f3d89c3 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 14 Sep 2015 13:26:36 -0400 Subject: [PATCH] Remove the abstraction of a function for determining the current Git branch in the prompt. --- .bashrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index c7b209d..6c7ecc0 100644 --- a/.bashrc +++ b/.bashrc @@ -26,10 +26,7 @@ fi #-------------------------------------------------------------------------------- # A useful prompt #-------------------------------------------------------------------------------- -parse_git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/' -} -export PS1="[\u@\h \W \[\033[32m\]\$(parse_git_branch)\[\033[00m\]]\\$ " +export PS1="[\u@\h \W \[\033[32m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ <\1>/')\[\033[00m\]]\\$ " export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' #--------------------------------------------------------------------------------