aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cwd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cwd.rs b/src/cwd.rs
index 8f1f86a..7550683 100644
--- a/src/cwd.rs
+++ b/src/cwd.rs
@@ -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());