From b06c61015559175144c517cf7fdfbb6697179552 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Tue, 21 May 2019 23:42:25 +0530 Subject: quickfix: remove unecessary env call --- src/cwd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cwd.rs b/src/cwd.rs index 7550683..7672981 100644 --- a/src/cwd.rs +++ b/src/cwd.rs @@ -3,7 +3,7 @@ use tico::tico; use colored::*; pub fn cwd() -> colored::ColoredString { - let mut path = env::var("PWD").unwrap(); + let mut path = format!("{}", env::current_dir().unwrap_or("".into()).display()); let home = env::var("HOME").unwrap(); let tilde_expand = env::var("EXPAND_TILDE").unwrap_or("0".into()); -- cgit v1.2.3