feat: add current directory display in main loop
All checks were successful
Release / Release (push) Successful in 34s

This commit is contained in:
Jan Gleytenhoover 2024-08-28 13:01:08 +02:00
parent 5961309bab
commit 0a5d3e11e4
Signed by: jank
GPG Key ID: B267751B8AE29EFE

@ -2,6 +2,8 @@ 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!("> ");
let _ = stdout().flush(); let _ = stdout().flush();