Skip to content

Instantly share code, notes, and snippets.

@codebykat
Created May 10, 2013 01:04

Revisions

  1. codebykat created this gist May 10, 2013.
    8 changes: 8 additions & 0 deletions terminal_tab_names.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # 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";
    }