mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Unset shell integration env var before exec command
This commit is contained in:
parent
bc9d6892d4
commit
98369db7f5
2 changed files with 2 additions and 1 deletions
|
|
@ -276,6 +276,7 @@ def main():
|
|||
ksi = frozenset(filter(None, os.environ.get('KITTY_SHELL_INTEGRATION', '').split()))
|
||||
exec_cmd = b'EXEC_CMD'
|
||||
if exec_cmd:
|
||||
os.environ.pop('KITTY_SHELL_INTEGRATION', None)
|
||||
cmd = base64.standard_b64decode(exec_cmd).decode('utf-8')
|
||||
os.execlp(login_shell, os.path.basename(login_shell), '-c', cmd)
|
||||
TEST_SCRIPT # noqa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue