X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=69f8aa1ed7c2a405779dd6b7f7c3f1dd4855ac53;hb=d266a5541890effba039977967bf046ea2e0f35b;hp=18012885c8c281113734f72fba299e1a42b3768d;hpb=4f7c9ef6a17a313a1f430498d748f13d7682b045;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 \