aboutsummaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-05 16:11:46 +0100
committerJonas Maier <>2026-03-05 16:11:46 +0100
commitdae24656d92d83835b6d7556d2789a1a7845877d (patch)
treea8aa53eed1ebe1c4c2802ae78e31cc994d85ae7a /src/run
parent374e7d8db5bcd8e78862d7b4f44836927e5df9ff (diff)
downloadpish-dae24656d92d83835b6d7556d2789a1a7845877d.tar.gz
cwd in the prompt
Diffstat (limited to 'src/run')
-rw-r--r--src/run/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs
index 73011fd..e1dcacc 100644
--- a/src/run/mod.rs
+++ b/src/run/mod.rs
@@ -15,7 +15,7 @@ pub fn run(se: &mut Session, cmd: Vec<u8>) {
Ok(p) => p,
Err(err) => {
println!("{cmd:?}");
- print!("{err:?}\r\n{PROMPT}");
+ print!("{err:?}\r\n{}", se.prompt());
return;
}
};
@@ -137,7 +137,7 @@ pub fn run(se: &mut Session, cmd: Vec<u8>) {
se.raw.enable();
- print!("\r{status_string}{PROMPT}");
+ print!("\r{status_string}\r\n{}", se.prompt());
let _ = std::io::stdout().lock().flush();
}