Skip to content

Instantly share code, notes, and snippets.

@joshbuhler
Last active October 2, 2015 19:38
Show Gist options
  • Save joshbuhler/2305892 to your computer and use it in GitHub Desktop.
Save joshbuhler/2305892 to your computer and use it in GitHub Desktop.
Custom tab names for Terminal.app. Just add this to your .bash_profile and restart Terminal.
# Add to .bash_profile, then restart Terminal (or open a new tab.)
# Usage: tabname "<TAB_NAME>"
#
# Quotes around the new tab name are optional - but make it easier to
# add tabnames that contain spaces or special characters.
tabname () {
echo -e "\033];$1\007";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment