Compare commits
	
		
			2 commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0a5d3e11e4 | |||
| 5961309bab | 
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -2,8 +2,10 @@ use std::{env, io::{stdin, stdout, Write}, path::Path, process::{Child, Command, | ||||||
| 
 | 
 | ||||||
| fn main(){ | fn main(){ | ||||||
|     loop { |     loop { | ||||||
|  |         println!(""); | ||||||
|  |         println!("{}", env::current_dir().unwrap().to_str().unwrap()); | ||||||
|         print!("> "); |         print!("> "); | ||||||
|         stdout().flush(); |         let _ = stdout().flush(); | ||||||
| 
 | 
 | ||||||
|         let mut input = String::new(); |         let mut input = String::new(); | ||||||
|         stdin().read_line(&mut input).unwrap(); |         stdin().read_line(&mut input).unwrap(); | ||||||
|  | @ -66,7 +68,7 @@ fn main(){ | ||||||
| 
 | 
 | ||||||
|         if let Some(mut final_command) = previous_command { |         if let Some(mut final_command) = previous_command { | ||||||
|             // block until the final command has finished
 |             // block until the final command has finished
 | ||||||
|             final_command.wait(); |             let _ = final_command.wait(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue