From c10d91cc58a563e926921f67aa82d1a615ffe091 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Tue, 21 May 2019 08:28:37 +0530 Subject: i dun an oopsie --- src/cwd.rs | 4 ++-- 1 file 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 { let tilde_expand = env::var("EXPAND_TILDE").unwrap_or("0".into()); match tilde_expand.as_ref() { - "0" => {}, - _ => path = path.replace(&home[..], "~") + "0" => path = path.replace(&home[..], "~"), + _ => {} }; let cwd_shorten = env::var("SHORTEN_CWD").unwrap_or("1".into()); -- cgit v1.2.3