Merge pull request #1 from ams-hash/current_dir
Made it so it shows current directory
This commit is contained in:
commit
3231678901
|
@ -10,7 +10,7 @@ fn main() {
|
||||||
// use the `>` character as the prompt
|
// use the `>` character as the prompt
|
||||||
// need to explicitly flush this to ensure it prints before read_line
|
// need to explicitly flush this to ensure it prints before read_line
|
||||||
|
|
||||||
print!("~> ");
|
print!("{} ~> ", std::env::current_dir().unwrap().display());
|
||||||
stdout().flush().unwrap();
|
stdout().flush().unwrap();
|
||||||
|
|
||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
|
|
Loading…
Reference in a new issue