Only integrate with ssh kitten if shared connections are enabled for that host
This commit is contained in:
parent
1b4cf1fea7
commit
5efcb35cfb
@ -836,9 +836,10 @@ class Window:
|
|||||||
conn_data: Union[None, List[str], SSHConnectionData] = None
|
conn_data: Union[None, List[str], SSHConnectionData] = None
|
||||||
if args:
|
if args:
|
||||||
ssh_cmdline = sorted(self.child.foreground_processes, key=lambda p: p['pid'])[-1]['cmdline'] or ['']
|
ssh_cmdline = sorted(self.child.foreground_processes, key=lambda p: p['pid'])[-1]['cmdline'] or ['']
|
||||||
idx = ssh_cmdline.index('--')
|
if 'ControlPath=' in ' '.join(ssh_cmdline):
|
||||||
conn_data = [is_ssh_kitten_sentinel] + list(ssh_cmdline[:idx + 2])
|
idx = ssh_cmdline.index('--')
|
||||||
else:
|
conn_data = [is_ssh_kitten_sentinel] + list(ssh_cmdline[:idx + 2])
|
||||||
|
if conn_data is None:
|
||||||
args = self.child.foreground_cmdline
|
args = self.child.foreground_cmdline
|
||||||
conn_data = get_connection_data(args, self.child.foreground_cwd or self.child.current_cwd or '')
|
conn_data = get_connection_data(args, self.child.foreground_cwd or self.child.current_cwd or '')
|
||||||
if conn_data is None:
|
if conn_data is None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user