Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ssh and chdir to my PWD on the local computer
- X-seq: zsh-users 24079
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: ssh and chdir to my PWD on the local computer
- Date: Fri, 19 Jul 2019 23:45:07 +0200
- Cc: Zsh MailingList <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AVpdudcyZf/tdTlIAluS3bqoQsd6/jImHW8vbzswwRE=; b=mCDP76Q/NUc2d6r9d7EMOI/zLbLrC0/NPVSMDiPxWwdBPctw/ndkxSKidLPAKnRM2z Vypvn0qbT9zMAWwSM6FfX13SctRrNu2pJ8cLZc2rRzHQZkz4sTjJmEoIacfq3+T3N/O8 g4Y21ZovcIiLuGIFb5qdnHTIKPKiW6v29X0f5v7OxMLOsOEjYiu7BfFY4PA2ZvgHQSJD gbts2tZMH+bxcWD+PCJkrm8ppgRImWIlhaBi0HN1HxQoFALSjcqWW36GklpoprzE4b8H Mtw0hxERyjFaltYqRFIalR3JAGBxpwD4KvhHoUgPGs/dCD1W0oHsZ+ABHa7t63mVNI13 jHtg==
- In-reply-to: <CADjGqHts+Kjj3Ogw3kNUkUaJerWBeNN+2HDJ0f=XDnO3e3kbng@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHts+Kjj3Ogw3kNUkUaJerWBeNN+2HDJ0f=XDnO3e3kbng@mail.gmail.com>
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