mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Only dump env var names not values
This commit is contained in:
@@ -215,8 +215,6 @@ def debug_config(opts: KittyOpts) -> str:
|
|||||||
p(' ', '\n '.join(opts.config_overrides))
|
p(' ', '\n '.join(opts.config_overrides))
|
||||||
compare_opts(opts, p)
|
compare_opts(opts, p)
|
||||||
p()
|
p()
|
||||||
p(green('Environment variables seen by the kitty process:'))
|
p(green('Environment variable names seen by the kitty process:'))
|
||||||
ml = max(map(len, os.environ)) if os.environ else 5
|
p('\t' + '\n\t'.join(sorted(os.environ)))
|
||||||
for k, v in os.environ.items():
|
|
||||||
p(k.ljust(ml), styled(repr(v), dim=True))
|
|
||||||
return out.getvalue()
|
return out.getvalue()
|
||||||
|
|||||||
Reference in New Issue
Block a user