]> git.wh0rd.org Git - home.git/commitdiff
PS1.sh: set the terminal window title
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Jul 2015 04:11:42 +0000 (00:11 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 28 Jul 2015 06:54:21 +0000 (02:54 -0400)
.profile.d/PS1.sh
.screenrc

index 71364e32f4487a66f11f1b7924f177fceeaeebe7..55f7718604e9b40d415da873a70818900374420d 100644 (file)
@@ -1,5 +1,6 @@
 if [ "${TERM}" != "dumb" ] ; then
-       PS1=
+       # Set the terminal's window title.
+       PS1='\[\e]0;\u@\h \w\007\]'
        if [ -n "${SDK_VERSION}" ] ; then
                PS1+="(sdk ${SDK_BOARD} ${SDK_VERSION}) "
        fi
index 97fae2192e225b9954a6f134e22cc72780f47dc3..66d3ce29c8ff1e3a28e2c5eefc61d6ac78da59e1 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -12,3 +12,6 @@ bind ^x
 
 # Unbind the license command.
 bind ,
+
+# Set default windowlist to include the hardstatus (PS1 shell setting).
+windowlist string "%3n %h%=%f"