Merge pull request #1 from ams-hash/current_dir

Made it so it shows current directory
pull/3/head
Able 2021-11-06 08:28:33 -05:00 committed by GitHub
commit ca6788711f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();