Created
December 30, 2021 04:09
-
-
Save anujonthemove/185ccd982b63e224a85f37db9b60c485 to your computer and use it in GitHub Desktop.
Rename terminal tab on Ubuntu 20.x
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
# directly taken from: https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal | |
function set-title() { | |
if [[ -z "$ORIG" ]]; then | |
ORIG=$PS1 | |
fi | |
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