This one-liner adds support for various terminal emulators to take on
an xterm-style title of the form '[EMAIL PROTECTED]: path'.

My first patch. Looking forward to hacking with all of you. :)

Signed-off-by: Dave Cooper <[EMAIL PROTECTED]>


Index: package/base-files/files/etc/profile
===================================================================
--- package/base-files/files/etc/profile        (revision 13381)
+++ package/base-files/files/etc/profile        (working copy)
@@ -4,6 +4,7 @@
 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 export HOME=/root
 export PS1='[EMAIL PROTECTED]:\w\$ '
+[ "$TERM" = xterm ] && export PS1="\[\e]0;[EMAIL PROTECTED]: \w\a\]$PS1"

 [ -x /bin/more ] || alias more=less
 [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to