aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-05-21 03:58:37 +0100
committerNerdyPepper <[email protected]>2019-05-21 03:58:37 +0100
commitc10d91cc58a563e926921f67aa82d1a615ffe091 (patch)
tree017196a4c82dd64e94ff517ce55217ddac7ab13e
parentf915e886be92e300494fee7f79e367fdcb26c79b (diff)
i dun an oopsie
-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());