I want to change the title of the gnome-terminal window to reflect the current directory. Is there a way to do that? A script may be? The \"change terminal title\" threads did n
Updated Answer For White Space Problem by 'basename'
PROMPT_COMMAND='echo -ne "\033]0;$(basename "$(pwd)")\007"'
Upadate for answered Oct 23 '13 at 1:47 user2909452