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?
GNU Screen – How to Change New Window Name
gnu-screenterminalwindow title
Best Answer
Make your shell change the window title every time it changes directory, or every time it displays a prompt.
For your
~/.bashrc
:Or for your
~/.zshrc
(for zsh users):For more information, look up under Dynamic titles in the Screen manual, or under “Titles (naming windows)” in the man page.