01-21-2003
3,093,
36
Join Date: Apr 2002
Last Activity: 28 March 2019, 4:00 PM EDT
Location: On my motorcycle
Posts: 3,093
Thanks Given: 2
Thanked 36 Times in 11 Posts
To change it dynamically, you would have to alias your cd command to run a script which would do the change directory AND change the title of the terminal window.
To change the title dynamically you need to use escape sequences, see
dtterm(5). The escape sequence is <ESC><]><l><your text><ESC><\>
Note, the <> characters are produced for clarity only, they do not
appear in the sequence itself.