From 9f250fdf26493258e1cfcddde4449dca59cc9ce2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Jan 2022 11:55:26 +0530 Subject: [PATCH] Only dump env var names not values --- kitty/debug_config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kitty/debug_config.py b/kitty/debug_config.py index 47e6e8a5c..5d685c4a0 100644 --- a/kitty/debug_config.py +++ b/kitty/debug_config.py @@ -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()