From cfff77043e95df8b02b9f3242e42b87d0d94249a Mon Sep 17 00:00:00 2001 From: Hugues Morisset Date: Sun, 3 Jan 2021 04:09:13 +0100 Subject: feat(status): Convert known status code to their meaning (#1948) User is able to choose if their want to display the meaning of known status code in place of number. --- src/configs/status.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/configs/status.rs') diff --git a/src/configs/status.rs b/src/configs/status.rs index dde8766cf..567e3ad64 100644 --- a/src/configs/status.rs +++ b/src/configs/status.rs @@ -6,7 +6,13 @@ use starship_module_config_derive::ModuleConfig; pub struct StatusConfig<'a> { pub format: &'a str, pub symbol: &'a str, + pub not_executable_symbol: &'a str, + pub not_found_symbol: &'a str, + pub sigint_symbol: &'a str, + pub signal_symbol: &'a str, pub style: &'a str, + pub map_symbol: bool, + pub recognize_signal_code: bool, pub disabled: bool, } @@ -15,7 +21,13 @@ impl<'a> RootModuleConfig<'a> for StatusConfig<'a> { StatusConfig { format: "[$symbol$status]($style) ", symbol: "✖", + not_executable_symbol: "🚫", + not_found_symbol: "🔍", + sigint_symbol: "🧱", + signal_symbol: "⚡", style: "bold red", + map_symbol: false, + recognize_signal_code: true, disabled: true, } } -- cgit v1.2.3