From 6a02071f267647f2c7072361bc48847008ce9367 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 16 Jul 2015 00:11:42 -0400 Subject: [PATCH] PS1.sh: set the terminal window title --- .profile.d/PS1.sh | 3 ++- .screenrc | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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" -- 2.39.5