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.
Answer
Based on this SO answer, I think this should work:
bind c stuff "screen -X chdir \$PWD; screen^M"
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.
No comments:
Post a Comment