diff options
Diffstat (limited to 'src/cwd.rs')
-rw-r--r-- | src/cwd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,8 +8,8 @@ pub fn cwd() -> colored::ColoredString { | |||
8 | let tilde_expand = env::var("EXPAND_TILDE").unwrap_or("0".into()); | 8 | let tilde_expand = env::var("EXPAND_TILDE").unwrap_or("0".into()); |
9 | 9 | ||
10 | match tilde_expand.as_ref() { | 10 | match tilde_expand.as_ref() { |
11 | "0" => {}, | 11 | "0" => path = path.replace(&home[..], "~"), |
12 | _ => path = path.replace(&home[..], "~") | 12 | _ => {} |
13 | }; | 13 | }; |
14 | 14 | ||
15 | let cwd_shorten = env::var("SHORTEN_CWD").unwrap_or("1".into()); | 15 | let cwd_shorten = env::var("SHORTEN_CWD").unwrap_or("1".into()); |