mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 22:44:50 +02:00
Have *_with_cwd work with the ssh kitten to open new windows auto-logged into the remote server at the current remote working directory
This commit is contained in:
@@ -27,6 +27,13 @@ rc files:
|
||||
|
||||
So you can now type just ``s hostname`` to connect.
|
||||
|
||||
If you define a mapping in :file:`kitty.conf` such as::
|
||||
|
||||
map f1 new_window_with_cwd
|
||||
|
||||
Then, pressing :kbd:`F1` will open a new window automatically logged
|
||||
into the same server using the ssh kitten, at the same directory.
|
||||
|
||||
The ssh kitten can be configured using the :file:`~/.config/kitty/ssh.conf`
|
||||
file where you can specify environment variables to set on the remote server
|
||||
and files to copy from your local machine to the remote server. Let's see a
|
||||
|
||||
@@ -68,7 +68,10 @@ no-title
|
||||
setting functionality instead.
|
||||
|
||||
no-cwd
|
||||
Turn off reporting
|
||||
Turn off reporting the current working directory. This is used to allow
|
||||
:ref:`action-new_window_with_cwd` and similar to open windows logged
|
||||
into remote machines using the :doc:`ssh kitten <kitten/ssh>`
|
||||
automatically with the same working directory as the current window.
|
||||
|
||||
no-prompt-mark
|
||||
Turn off marking of prompts. This disables jumping to prompt, browsing
|
||||
|
||||
Reference in New Issue
Block a user