]> git.wh0rd.org - home.git/blobdiff - .profile.d/PS1.sh
PS1.sh: set the terminal window title
[home.git] / .profile.d / PS1.sh
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