X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Ffunctions;h=69f8aa1ed7c2a405779dd6b7f7c3f1dd4855ac53;hb=c18e95513620e98cb01133d8911163fb7f7d5c09;hp=1f1636d501402ef59a2ebf22cdcf86337c62b676;hpb=e2b2e80344ea9444b2fba5eaf1c345a2427ca620;p=clearscm.git diff --git a/rc/functions b/rc/functions index 1f1636d..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 \ @@ -189,7 +189,7 @@ function ssh { } # ssh function sj { - if [ $ARCH = "FreeBSD" ]; then + if [ $ARCHITECTURE = "FreeBSD" ]; then psopts="-aux" else psopts="-ef"