mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-30 12:53:14 +00:00
shell environ modification should only happen for actual shell processes
This commit is contained in:
parent
2f5d3b073d
commit
cc2419911c
1 changed files with 3 additions and 3 deletions
|
|
@ -119,14 +119,14 @@ def setup_shell_integration(opts: Options, env: Dict[str, str]) -> bool:
|
|||
|
||||
|
||||
def modify_shell_environ(argv0: str, opts: Options, env: Dict[str, str]) -> None:
|
||||
shell = get_supported_shell_name(argv0)
|
||||
if shell is None:
|
||||
return
|
||||
if 'disabled' in set(opts.shell_integration.split()):
|
||||
return
|
||||
env['KITTY_SHELL_INTEGRATION'] = opts.shell_integration
|
||||
if not shell_integration_allows_rc_modification(opts):
|
||||
return
|
||||
shell = get_supported_shell_name(argv0)
|
||||
if shell is None:
|
||||
return
|
||||
f = ENV_MODIFIERS.get(shell)
|
||||
if f is not None:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue