summaryrefslogtreecommitdiffstats
path: root/src/modules/nix_shell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/nix_shell.rs')
-rw-r--r--src/modules/nix_shell.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/nix_shell.rs b/src/modules/nix_shell.rs
index b37fcdcf4..5fc98dfc9 100644
--- a/src/modules/nix_shell.rs
+++ b/src/modules/nix_shell.rs
@@ -46,8 +46,10 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
}
})
.map(|segment| {
- let module_color = Color::Red.bold();
- module.set_style(module_color);
+ let module_style = module
+ .config_value_style("style")
+ .unwrap_or_else(|| Color::Red.bold());
+ module.set_style(module_style);
module.new_segment("nix_shell", &segment);
module
})