aboutsummaryrefslogtreecommitdiffstats
path: root/src/colors.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-02-20 02:39:39 -0500
committerJesse Luehrs <doy@tozt.net>2018-02-20 03:30:54 -0500
commit844d6b09ff1e7ab4ddb4b15dcb04cd0e45c67ce1 (patch)
tree5b602099d30ae279fdb74b2fbbd6acaf89546b3b /src/colors.rs
parent83f89188161b38046b39124ffb45bbbd6fcb572f (diff)
downloadfancy-prompt-844d6b09ff1e7ab4ddb4b15dcb04cd0e45c67ce1.tar.gz
fancy-prompt-844d6b09ff1e7ab4ddb4b15dcb04cd0e45c67ce1.zip
handle pwd coloring
Diffstat (limited to 'src/colors.rs')
-rw-r--r--src/colors.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/colors.rs b/src/colors.rs
index ff6ed86..2db944c 100644
--- a/src/colors.rs
+++ b/src/colors.rs
@@ -30,6 +30,9 @@ impl Colors {
pub fn new(shell_type: ShellType) -> Colors {
let mut color_map = std::collections::HashMap::new();
+ color_map.insert(String::from("path_not_writable"), term::color::YELLOW);
+ color_map.insert(String::from("path_not_exist"), term::color::RED);
+
color_map.insert(String::from("battery_warn"), term::color::YELLOW);
color_map.insert(String::from("battery_crit"), term::color::RED);
color_map.insert(String::from("battery_emerg"), term::color::BRIGHT_RED);