Created
March 26, 2020 21:54
-
-
Save openstacker/5fa36e87647a2a9047a071a77fe4490d to your computer and use it in GitHub Desktop.
set terminal title
This file contains hidden or 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
set-title(){ | |
ORIG=$PS1 | |
TITLE="\e]2;$@\a" | |
PS1=${ORIG}${TITLE} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment