Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ssh and chdir to my PWD on the local computer



On Fri, Jul 19, 2019 at 7:41 PM TJ Luoma <luomat@xxxxxxxxx> wrote:
>
> I wanted to be able to ssh to another computer and immediately chdir
> to the same directory that I was using locally.

When I need to run some commands before an interactive SSH session, I
do it like this:

    ssh -t user@host "cd ${(q)PWD}; zsh -i"

It's quite flexible.

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author