Split ssh session with specific cwd instead of current #8134
Unanswered
crater2150
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Does
launch kitten ssh --kitten cwd=/path/on/remote servername
not work?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that passing
--cwd=current
to thelaunch
command in a ssh session will open the split also on the remote server, this works fine. But passing--cwd=/some/other/path/on/remote
will open a local split, trying to open the remote path locally. I'm using this in a script that starts several programs in splits, which need different working directories.Is there some other parameter that forces
launch
to open the new window on the same host as the current one? I've tried--copy-env
, but that does not seem to cause an ssh connection either.As a workaround, I now launch a wrapper script that changes directory and then executes the command, but it would be nice if there was a way without an extra script.
Beta Was this translation helpful? Give feedback.
All reactions