Created
November 22, 2020 08:29
-
-
Save gyula-ny/0cde6dbf96804cb878b6314633383e25 to your computer and use it in GitHub Desktop.
Change the window title of X terminals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case ${TERM} in | |
[aEkx]term*|rxvt*|gnome*|konsole*|interix) | |
PS1='\[\033]0;\u@\h:\w\007\]' | |
;; | |
screen*) | |
PS1='\[\033k\u@\h:\w\033\\\]' | |
;; | |
*) | |
unset PS1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment