Created
May 10, 2013 01:04
-
-
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
This file contains 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
# 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