Re: screen session remember

Anton Sharonov <[email protected]> Wed, 13 Mar 2024 22:01:03 +0100
Newsgroups gmane.comp.gnu.screen.user
Message-ID <ZfIUD5H1Jlb9BWF9@localhost>
On Wed, Mar 13, 2024 at 08:46:30PM +0100, aotto wrote:
> I have a “screen session” with 10 screens and after
> rebooting I want each screen (0-9) to start in the same
> directory in which it was closed.

Maybe not exactly what you are asking for, but you can
hardcode your shells to curtain path on start using something
like this in your ~/.screenrc:


screen -t 0_vim
screen -t 1_vim_doc
... continue with your number of shells ...
at 0 stuff "cd ~/.vim^j"
at 1 stuff "cd ~/.vim/doc^j"
... etc ...


With best regards, Anton