From 30d2245515f1223c234ad00ffc2d1c2db8d71682 Mon Sep 17 00:00:00 2001 From: ams-hash Date: Fri, 5 Nov 2021 17:02:27 +0000 Subject: [PATCH] Made it so it shows current directory --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cc6e103..422edcc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ fn main() { // use the `>` character as the prompt // need to explicitly flush this to ensure it prints before read_line - print!("~> "); + print!("{} ~> ", std::env::current_dir().unwrap().display()); stdout().flush().unwrap(); let mut input = String::new();