Skip to content

Instantly share code, notes, and snippets.

@mdigital
Created May 31, 2012 21:25
Show Gist options
  • Save mdigital/2846413 to your computer and use it in GitHub Desktop.
Save mdigital/2846413 to your computer and use it in GitHub Desktop.
.bash_profile function to name your terminal windows
function st {
title=$1;
echo -e "\033];${title}\007";
}
Insert this snippet into your profile then when in iTerm2 you can just type:
st "python console"
To set the tab or window title for the current session.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment