I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
Make your shell change the window title every time it changes directory, or every time it displays a prompt.
Or for your
For more information, look up under Dynamic titles in the Screen manual, or under “Titles (naming windows)” in the man page.
You can put this into the .bashrc to change the terminal name (window name) to the last directory (or file name) that you are in (working on).
more described here: link