Docs: Mention close_shared_ssh_connections in ssh kitten config docs
This commit is contained in:
parent
2b58316c64
commit
6c1f20bb27
@ -136,6 +136,8 @@ Within a single kitty instance, all connections to a particular server can be
|
|||||||
shared. This reduces startup latency for subsequent connections and means that
|
shared. This reduces startup latency for subsequent connections and means that
|
||||||
you have to enter the password only once. Under the hood, it uses SSH
|
you have to enter the password only once. Under the hood, it uses SSH
|
||||||
ControlMasters and these are automatically cleaned up by kitty when it quits.
|
ControlMasters and these are automatically cleaned up by kitty when it quits.
|
||||||
|
You can map a shortcut to :ac:`close_shared_ssh_connections` to disconnect all
|
||||||
|
active shared connections.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
opt('askpass', 'unless-set', choices=('unless-set', 'ssh', 'native'), long_text='''
|
opt('askpass', 'unless-set', choices=('unless-set', 'ssh', 'native'), long_text='''
|
||||||
|
|||||||
@ -2245,7 +2245,11 @@ class Boss:
|
|||||||
output = '\n'.join(f'{k}={v}' for k, v in os.environ.items())
|
output = '\n'.join(f'{k}={v}' for k, v in os.environ.items())
|
||||||
self.display_scrollback(w, output, title=_('Current kitty env vars'), report_cursor=False)
|
self.display_scrollback(w, output, title=_('Current kitty env vars'), report_cursor=False)
|
||||||
|
|
||||||
@ac('debug', 'Close all shared SSH connections')
|
@ac('debug', '''
|
||||||
|
Close all shared SSH connections
|
||||||
|
|
||||||
|
See :opt:`share_connections <kitten-ssh.share_connections>` for details.
|
||||||
|
''')
|
||||||
def close_shared_ssh_connections(self) -> None:
|
def close_shared_ssh_connections(self) -> None:
|
||||||
cleanup_ssh_control_masters()
|
cleanup_ssh_control_masters()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user