Commits

Carl Meyer committed 3712019

Added terminal window title setting code back in to prompt.

Comments (0)

Files changed (1)

     # user
     user="${CYAN}${USER}${NIL}"
 
+    # If this is an xterm set the title to user@host:dir
+    case "$TERM" in
+    xterm*|rxvt*)
+        title="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]"
+        ;;
+    *)
+	title=""
+        ;;
+    esac
+
     # Put it all together
-    export PS1="\n${time} ${user}@${host}:${path}${venv}${branch} ${end}"
+    export PS1="${title}\n${time} ${user}@${host}:${path}${venv}${branch} ${end}"
 }
 export PROMPT_COMMAND=set_prompt