mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
ssh kitten: Add an option to change the cwd at login
This commit is contained in:
@@ -230,6 +230,9 @@ def main():
|
||||
get_data()
|
||||
finally:
|
||||
cleanup()
|
||||
cwd = os.environ.pop('KITTY_LOGIN_CWD', '')
|
||||
if cwd:
|
||||
os.chdir(cwd)
|
||||
ksi = frozenset(filter(None, os.environ.get('KITTY_SHELL_INTEGRATION', '').split()))
|
||||
exec_cmd = b'EXEC_CMD'
|
||||
if exec_cmd:
|
||||
|
||||
Reference in New Issue
Block a user