aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-05-21 19:12:25 +0100
committerNerdyPepper <[email protected]>2019-05-21 19:12:25 +0100
commitb06c61015559175144c517cf7fdfbb6697179552 (patch)
treeea196a9e06736da865c95ca93df1c8af756e2707 /src
parentbebbb8b0a27bf5335499d3388046685ebd602e55 (diff)
quickfix: remove unecessary env call
Diffstat (limited to 'src')
-rw-r--r--src/cwd.rs2
1 files changed, 1 insertions, 1 deletions
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;
3use colored::*; 3use colored::*;
4 4
5pub fn cwd() -> colored::ColoredString { 5pub fn cwd() -> colored::ColoredString {
6 let mut path = env::var("PWD").unwrap(); 6 let mut path = format!("{}", env::current_dir().unwrap_or("".into()).display());
7 let home = env::var("HOME").unwrap(); 7 let home = env::var("HOME").unwrap();
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