Added ServerAlive
[clearscm.git] / rc / functions
index 1801288..69f8aa1 100644 (file)
@@ -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 \