From: Mike Frysinger Date: Thu, 16 Jul 2015 04:11:42 +0000 (-0400) Subject: PS1.sh: set the terminal window title X-Git-Url: https://git.wh0rd.org/?p=home.git;a=commitdiff_plain;h=6a02071f267647f2c7072361bc48847008ce9367 PS1.sh: set the terminal window title --- diff --git a/.profile.d/PS1.sh b/.profile.d/PS1.sh index 71364e3..55f7718 100644 --- a/.profile.d/PS1.sh +++ b/.profile.d/PS1.sh @@ -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 diff --git a/.screenrc b/.screenrc index 97fae21..66d3ce2 100644 --- 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"