I turned off, 'show active process' in preferences. Along with all the other trivia. I want different trivia.
As an example, I have the following two lines in my .bash_profile
in my home directory. (.bash_profile
gets executed in every new tab/window)
PROMPT_COMMAND='echo -n -e "\033]0;`basename $PWD`\007"'
function vi { echo -n -e "\033]0;vi $1\007" ; vim $1 ;}
The first command sets the tab to the last directory in my current bath.
e.g. if I'm in ~sherwood/foo/bar
this will be bar
The second one in effect turns vi (my editor of choice) into a pair of commands that does the same sort of echo, but now it sets the tab to show that I'm editing this file. So if I'm editing ~sherwood/foo/bar/baz
, it will show vi baz
Note that it will show whatever you told vi. So if you type
vi /some/long/path/to/a/../../name
that's what the tab will show, or at least as much of it as will fit.
At this time I have not found a way to set the title bar differently from the tab.