Sort env vars printed by --diagnostic

This commit is contained in:
Rivera Calzadillas 2024-03-08 22:30:45 -07:00 committed by Martin Nordholts
parent e8d777b73a
commit f71226adbb

View File

@ -272,24 +272,24 @@ fn invoke_bugreport(app: &App, cache_dir: &Path) {
.info(OperatingSystem::default()) .info(OperatingSystem::default())
.info(CommandLine::default()) .info(CommandLine::default())
.info(EnvironmentVariables::list(&[ .info(EnvironmentVariables::list(&[
"SHELL",
"PAGER",
"LESS",
"LANG",
"LC_ALL",
"BAT_PAGER",
"BAT_PAGING",
"BAT_CACHE_PATH", "BAT_CACHE_PATH",
"BAT_CONFIG_PATH", "BAT_CONFIG_PATH",
"BAT_OPTS", "BAT_OPTS",
"BAT_PAGER",
"BAT_PAGING",
"BAT_STYLE", "BAT_STYLE",
"BAT_TABS", "BAT_TABS",
"BAT_THEME", "BAT_THEME",
"XDG_CONFIG_HOME",
"XDG_CACHE_HOME",
"COLORTERM", "COLORTERM",
"NO_COLOR", "LANG",
"LC_ALL",
"LESS",
"MANPAGER", "MANPAGER",
"NO_COLOR",
"PAGER",
"SHELL",
"XDG_CACHE_HOME",
"XDG_CONFIG_HOME",
])) ]))
.info(FileContent::new("System Config file", system_config_file())) .info(FileContent::new("System Config file", system_config_file()))
.info(FileContent::new("Config file", config_file())) .info(FileContent::new("Config file", config_file()))