X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=47db2ca93b40eaea7afde1f97179a5f011b3c673;hb=8a384ea1c4e9c00a0e02a6fdf995529421f5ba82;hp=c27274bfca82f05808d094b91ced22095fea0175;hpb=c44e2bad90e678fec3b8cfc4c4365553a73754be;p=clearscm.git diff --git a/rc/functions b/rc/functions index c27274b..47db2ca 100644 --- a/rc/functions +++ b/rc/functions @@ -26,7 +26,7 @@ function in_git_repo { return; fi - pwd=$(dirname $pwd) + pwd=$(dirname "$pwd") done false @@ -55,7 +55,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 \