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"' #--------------------------------------------------------------------------------