Skip to content

Instantly share code, notes, and snippets.

@codebykat
Created May 10, 2013 01:04
Show Gist options
  • Save codebykat/5551772 to your computer and use it in GitHub Desktop.
Save codebykat/5551772 to your computer and use it in GitHub Desktop.
add to ~/.bash_profile to set Terminal tabs to the name of file currently being edited in nano
# function to set the tab name in Terminal
function tabname {
printf "\e]1;$1\a"
}
function nano {
tabname $1 && /usr/bin/nano $1 && tabname "bash";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment