From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: TJ Luoma <luomat@gmail.com>
Cc: Zsh MailingList <zsh-users@zsh.org>
Subject: Re: ssh and chdir to my PWD on the local computer
Date: Fri, 19 Jul 2019 23:45:07 +0200 [thread overview]
Message-ID: <CAN=4vMqjf9Z4k-=so5rAMYpyppSd5S0ynzH6PFARw1dhOAmo9A@mail.gmail.com> (raw)
In-Reply-To: <CADjGqHts+Kjj3Ogw3kNUkUaJerWBeNN+2HDJ0f=XDnO3e3kbng@mail.gmail.com>
On Fri, Jul 19, 2019 at 7:41 PM TJ Luoma <luomat@gmail.com> 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.
next prev parent reply other threads:[~2019-07-19 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 17:40 TJ Luoma
2019-07-19 21:45 ` Roman Perepelitsa [this message]
2019-07-20 16:36 ` gi1242+zsh
2019-07-22 15:55 ` Philippe Troin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN=4vMqjf9Z4k-=so5rAMYpyppSd5S0ynzH6PFARw1dhOAmo9A@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=luomat@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).