ssh kitten: Add an option to change the cwd at login

This commit is contained in:
Kovid Goyal
2022-03-07 12:24:37 +05:30
parent b0ea960159
commit c9071a66ca
7 changed files with 29 additions and 5 deletions

View File

@@ -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: