Only dump env var names not values

This commit is contained in:
Kovid Goyal 2022-01-29 11:55:26 +05:30
parent d92eba82bc
commit 9f250fdf26
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -215,8 +215,6 @@ def debug_config(opts: KittyOpts) -> str:
p(' ', '\n '.join(opts.config_overrides))
compare_opts(opts, p)
p()
p(green('Environment variables seen by the kitty process:'))
ml = max(map(len, os.environ)) if os.environ else 5
for k, v in os.environ.items():
p(k.ljust(ml), styled(repr(v), dim=True))
p(green('Environment variable names seen by the kitty process:'))
p('\t' + '\n\t'.join(sorted(os.environ)))
return out.getvalue()