diff --git a/src/main.rs b/src/main.rs index 6085b11..f18ab02 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,8 +2,10 @@ use std::{env, io::{stdin, stdout, Write}, path::Path, process::{Child, Command, fn main(){ loop { + println!(""); + println!("{}", env::current_dir().unwrap().to_str().unwrap()); print!("> "); - stdout().flush(); + let _ = stdout().flush(); let mut input = String::new(); stdin().read_line(&mut input).unwrap(); @@ -66,7 +68,7 @@ fn main(){ if let Some(mut final_command) = previous_command { // block until the final command has finished - final_command.wait(); + let _ = final_command.wait(); } }