Author: baggins                      Date: Fri Jun 10 13:07:21 2005 GMT
Module: SOURCES                       Tag: AC-branch
---- Log message:
- xterm title done PROPER way

---- Files affected:
SOURCES:
   bashrc (1.14.2.8 -> 1.14.2.9) 

---- Diffs:

================================================================
Index: SOURCES/bashrc
diff -u SOURCES/bashrc:1.14.2.8 SOURCES/bashrc:1.14.2.9
--- SOURCES/bashrc:1.14.2.8     Fri Jun 10 10:39:44 2005
+++ SOURCES/bashrc      Fri Jun 10 15:07:16 2005
@@ -3,15 +3,15 @@
 # System wide functions and aliases
 # Environment stuff goes in /etc/profile
 
-# We set PS1 for each terminal:
+# If this is an xterm set the title to [EMAIL PROTECTED]:dir
 case $TERM in
-       gnome|xterm*|rxvt)
-               PS1="\[\033]0;[EMAIL PROTECTED]: [EMAIL PROTECTED] \W]\\$ "
+       gnome|xterm*|rxvt*)
+               PROMPT_COMMAND='echo -ne "\033]0;[EMAIL PROTECTED]: ${PWD}\007"'
                ;;
        *)
-               PS1="[EMAIL PROTECTED] \W]\\$ "
                ;;
 esac
+PS1="[EMAIL PROTECTED] \W]\\$ "
 
 alias which="type -p"
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/bashrc?r1=1.14.2.8&r2=1.14.2.9&f=u

_______________________________________________
pld-cvs-commit mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to