Created
November 27, 2013 12:57
-
-
Save RaVbaker/7675232 to your computer and use it in GitHub Desktop.
[iTerm] Naming tabs in iTerm
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
#!/bin/bash | |
# A simple script which will name a tab in iTerm | |
# usage: | |
# $ nametab NewTabName | |
echo "trying to rename the current tab to $@" | |
echo -ne "\033]0;"$@"\007" | |
echo "finished" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put it in
~/bin/
asnametab
and allow execution with:chmod +x ~/bin/nametab
After that enjoy naming tabs in iTerm!
Found on: http://stackoverflow.com/questions/8823103/how-does-this-script-for-naming-iterm-tabs-work