diff options
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 | ||