summaryrefslogtreecommitdiffstats
path: root/src/configs/status.rs
diff options
context:
space:
mode:
authorHugues Morisset <morisset.hugues@gmail.com>2021-01-03 04:09:13 +0100
committerGitHub <noreply@github.com>2021-01-02 21:09:13 -0600
commitcfff77043e95df8b02b9f3242e42b87d0d94249a (patch)
tree45fec5311e7abc27c9e9b95a268b67afbafb4788 /src/configs/status.rs
parenta07e184c45ebbab912a1864b84fd71ba8d236d7f (diff)
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.
Diffstat (limited to 'src/configs/status.rs')
-rw-r--r--src/configs/status.rs12
1 files changed, 12 insertions, 0 deletions
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,
}
}