X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=69f8aa1ed7c2a405779dd6b7f7c3f1dd4855ac53;hb=07947b5abee085cf30d8211c46849bf88c5d6e2b;hp=c27274bfca82f05808d094b91ced22095fea0175;hpb=1d922ee420e3465e6a129aafb19ae20f2609dcde;p=clearscm.git diff --git a/rc/functions b/rc/functions index c27274b..69f8aa1 100644 --- a/rc/functions +++ b/rc/functions @@ -17,21 +17,6 @@ CR=$(echo "\015") view_name= -function in_git_repo { - pwd=$PWD - - while [ "$pwd" != "/" ]; do - if [ -d "$pwd/.git" ]; then - true; - return; - fi - - pwd=$(dirname $pwd) - done - - false -} # in_git_repo - # Function to set the title bar. Works on the terminal emulators listed. function title_bar { prefix="$@" @@ -55,7 +40,7 @@ function title_bar { # Add GIT info if available if in_git_repo; then - current_dir="git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') $current_dir" + current_dir="$current_dir [git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')]" fi if [ "$TERM" = "hpterm" -o \