diff options
author | NerdyPepper <[email protected]> | 2019-05-21 19:05:38 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-05-21 19:05:38 +0100 |
commit | bebbb8b0a27bf5335499d3388046685ebd602e55 (patch) | |
tree | 67d64e28be47f03a35799ade1dcaf9bcebe4fcfb /src/prompt_char.rs | |
parent | c3a0eeaa58d6c8981882ce1e2ad633b2c00c8b16 (diff) |
hotfix: default color for $ was missing
Diffstat (limited to 'src/prompt_char.rs')
-rw-r--r-- | src/prompt_char.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prompt_char.rs b/src/prompt_char.rs index a95681e..75827bd 100644 --- a/src/prompt_char.rs +++ b/src/prompt_char.rs | |||
@@ -4,7 +4,7 @@ use colored::*; | |||
4 | pub fn get_char() -> colored::ColoredString { | 4 | pub fn get_char() -> colored::ColoredString { |
5 | let user_char = env::var("PROMPT_CHAR").unwrap_or("$".into()); | 5 | let user_char = env::var("PROMPT_CHAR").unwrap_or("$".into()); |
6 | let root_char = env::var("PROMPT_CHAR_ROOT").unwrap_or("#".into()); | 6 | let root_char = env::var("PROMPT_CHAR_ROOT").unwrap_or("#".into()); |
7 | let user_char_color = env::var("PROMPT_CHAR_COLOR").unwrap_or("green ".into()); | 7 | let user_char_color = env::var("PROMPT_CHAR_COLOR").unwrap_or("green".into()); |
8 | let root_char_color = env::var("PROMPT_CHAR_ROOT_COLOR").unwrap_or("red".into()); | 8 | let root_char_color = env::var("PROMPT_CHAR_ROOT_COLOR").unwrap_or("red".into()); |
9 | 9 | ||
10 | let euid = unsafe { libc::geteuid() }; | 10 | let euid = unsafe { libc::geteuid() }; |