diff --git a/src/main.rs b/src/main.rs index f18ab02..6085b11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,10 +2,8 @@ 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!("> "); - let _ = stdout().flush(); + stdout().flush(); let mut input = String::new(); stdin().read_line(&mut input).unwrap(); @@ -68,7 +66,7 @@ fn main(){ if let Some(mut final_command) = previous_command { // block until the final command has finished - let _ = final_command.wait(); + final_command.wait(); } }