From 0a5d3e11e44c92dd9ebd8830b20f417b5702e89e Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 28 Aug 2024 13:01:08 +0200 Subject: [PATCH] feat: add current directory display in main loop --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2d7fefa..f18ab02 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +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();