changeset 59:757576a3fa79

[bash] titlebar!
author Edho Prima Arief <me@myconan.net>
date Thu, 05 May 2011 00:58:13 +0700
parents 73b2fccc4f06
children be4d0b045487
files bash
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Thu May 05 00:56:11 2011 +0700
+++ b/bash	Thu May 05 00:58:13 2011 +0700
@@ -62,5 +62,11 @@
 
 export PATH
 
+case "${TERM}" in
+  xterm*|screen*|dtterm)
+    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+  ;;
+esac
+
 command -v vim > /dev/null 2>&1 && alias vi=vim
 [ -f .ecos_bash.after ] && . .ecos_bash.after