diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-02-20 03:56:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-02-20 03:56:34 -0500 |
commit | ec456a97d15b1b54fd6371d1c164d769b30e1b2f (patch) | |
tree | e609c42583fe1683918ed61cbbaba86229b3c800 | |
parent | 9fbee5b7620b6f7426e6c1e2f1410c0f177289a5 (diff) | |
download | fancy-prompt-ec456a97d15b1b54fd6371d1c164d769b30e1b2f.tar.gz fancy-prompt-ec456a97d15b1b54fd6371d1c164d769b30e1b2f.zip |
give a default for root's user color
-rw-r--r-- | src/colors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/colors.rs b/src/colors.rs index ddb3418..197881c 100644 --- a/src/colors.rs +++ b/src/colors.rs @@ -30,6 +30,8 @@ impl Colors { pub fn new(shell_type: ShellType) -> Colors { let mut color_map = std::collections::HashMap::new(); + color_map.insert(String::from("user_root"), term::color::BRIGHT_RED); + 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("vcs_dirty"), term::color::RED); |