Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen session is invoked.
|
|
||||
|
|
|
Based on this SO answer, I think this should work:
I'll go try it on my remote shell and report back if it works for me. edit: Yup, it works. The first "bind" command is actually not needed. |
|||||
|
|
By default,
Clarification about how this command works:
Consequently, this bind will leave cruft like this in the window you execute it in:
|
|||||||
|