Created
January 22, 2015 01:34
-
-
Save fstamour/495180644e321cd81cb9 to your computer and use it in GitHub Desktop.
Little shell function to set the terminal's title (like the title of a gnome-terminal tabs).
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
# Note that sometimes, these escape sequences are in the prompt, | |
# resetting the title at every command. | |
set_terminal_title () { | |
echo -en "\033]0;$@\a" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment