Skip to content

Instantly share code, notes, and snippets.

@RaVbaker
Created November 27, 2013 12:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaVbaker/7675232 to your computer and use it in GitHub Desktop.
Save RaVbaker/7675232 to your computer and use it in GitHub Desktop.
[iTerm] Naming tabs in iTerm
#!/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"
@RaVbaker
Copy link
Author

Put it in ~/bin/ as nametab 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment