Created
September 23, 2012 06:35
-
-
Save Toady00/3769106 to your computer and use it in GitHub Desktop.
Bash function to rename OS X Terminal windows and 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
# Add this to your .bash_profile, or where ever you prefer. | |
function tname { | |
printf "\e]1;$1\a" | |
} | |
function wname { | |
printf "\e]2;$1\a" | |
} |
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
# Now you can easily name your tabs or windows with the following: | |
# Rename tab | |
tname "Funky Tab" | |
# Rename window | |
wname "Funky Window" |
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
Taken from Jamie Hill's blog at http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/ who in turn got the idea from "bubu" and Chris Page at http://superuser.com/questions/223308/name-terminal-tabs#answer-223314 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment