diff options
author | NerdyPepper <[email protected]> | 2019-05-21 19:12:25 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-05-21 19:12:25 +0100 |
commit | b06c61015559175144c517cf7fdfbb6697179552 (patch) | |
tree | ea196a9e06736da865c95ca93df1c8af756e2707 /src/cwd.rs | |
parent | bebbb8b0a27bf5335499d3388046685ebd602e55 (diff) |
quickfix: remove unecessary env call
Diffstat (limited to 'src/cwd.rs')
-rw-r--r-- | src/cwd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ use tico::tico; | |||
3 | use colored::*; | 3 | use colored::*; |
4 | 4 | ||
5 | pub fn cwd() -> colored::ColoredString { | 5 | pub 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 | ||