X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rc%2Ffunctions;h=1f1636d501402ef59a2ebf22cdcf86337c62b676;hb=e2b2e80344ea9444b2fba5eaf1c345a2427ca620;hp=fd373a2da2d5b4f21c6135b8e920ae129127d873;hpb=db41aa74d8f0f113486151e633d9361d8bb67f49;p=clearscm.git diff --git a/rc/functions b/rc/functions index fd373a2..1f1636d 100644 --- a/rc/functions +++ b/rc/functions @@ -38,6 +38,11 @@ function title_bar { current_dir="$current_dir ($(cat CVS/Root | tr -d $CR))" fi + # Add GIT info if available + if [ -d .git ]; then + current_dir="git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') $current_dir" + fi + if [ "$TERM" = "hpterm" -o \ "$TERM" = "hp" -o \ "$TERM" = "2392A" ]; then