Made it so it shows current directory

pull/1/head
ams-hash 2021-11-05 17:02:27 +00:00
parent 806ea59664
commit 30d2245515
1 changed files with 1 additions and 1 deletions

View File

@ -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();