X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=69f8aa1ed7c2a405779dd6b7f7c3f1dd4855ac53;hb=759ea804468fe887d150c9b2b01fb9607c4d5ea4;hp=18012885c8c281113734f72fba299e1a42b3768d;hpb=2416f3dcb9c90f552302ee5c4cf608fd9a7f3683;p=clearscm.git diff --git a/rc/functions b/rc/functions index 1801288..69f8aa1 100644 --- a/rc/functions +++ b/rc/functions @@ -39,8 +39,8 @@ function title_bar { fi # Add GIT info if available - if [ -d .git ]; then - current_dir="git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') $current_dir" + if in_git_repo; then + current_dir="$current_dir [git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')]" fi if [ "$TERM" = "hpterm" -o \