X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=69f8aa1ed7c2a405779dd6b7f7c3f1dd4855ac53;hb=247c1776b934629bb42f694c0547042615f8c332;hp=fd373a2da2d5b4f21c6135b8e920ae129127d873;hpb=020a4a5ea2be725b155cae3a2cadc9aba3911b9b;p=clearscm.git diff --git a/rc/functions b/rc/functions index fd373a2..69f8aa1 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 in_git_repo; then + current_dir="$current_dir [git: $(git branch | sed -n -e 's/^\* \(.*\)/\1/p')]" + fi + if [ "$TERM" = "hpterm" -o \ "$TERM" = "hp" -o \ "$TERM" = "2392A" ]; then @@ -184,7 +189,7 @@ function ssh { } # ssh function sj { - if [ $ARCH = "FreeBSD" ]; then + if [ $ARCHITECTURE = "FreeBSD" ]; then psopts="-aux" else psopts="-ef"