mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 04:32:05 +00:00
Dont clone prompt related env variables
These really shouldnt be exported but people often do
This commit is contained in:
parent
aab9482e31
commit
b5701691c6
1 changed files with 4 additions and 0 deletions
|
|
@ -567,6 +567,10 @@ class CloneCmd:
|
|||
self.args.append(v)
|
||||
elif k == 'env':
|
||||
self.env = parse_bash_env(v) if self.envfmt == 'bash' else parse_null_env(v)
|
||||
for filtered in ('PS0', 'PS1', 'PS2', 'PS3', 'PS4', 'RPS1', 'PROMPT_COMMAND'):
|
||||
# some people export these. We want the shell rc files to
|
||||
# recreate them
|
||||
self.env.pop(filtered, None)
|
||||
elif k == 'cwd':
|
||||
self.cwd = v
|
||||
elif k == 'argv':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue