diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-03-06 13:03:26 +0100 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-03-06 13:03:26 +0100 |
| commit | b19d0ea31817928655f84addb933cf4ba3187cb8 (patch) | |
| tree | 80d6f09186e99804830146e7c95dd41af54348e4 /src/main.rs | |
| parent | e568ccb94011146288b4bd63952be741b7500df5 (diff) | |
| download | pish-b19d0ea31817928655f84addb933cf4ba3187cb8.tar.gz | |
support `cd -`
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 19e7743..c4113f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,6 +55,7 @@ pub struct Session { line: LineBuf, history: Vec<BString>, dispatch: CommandDispatch, + prev_path: BString, } /// relative path -- in case it is a proper subpath the result starts with a slash `/` @@ -138,6 +139,7 @@ fn event_loop() { line: LineBuf::new(), history: Vec::new(), dispatch: CommandDispatch::new(), + prev_path: vec![b'.'], }; print!("{}", se.prompt()); |
