diff options
Diffstat (limited to 'src/run')
| -rw-r--r-- | src/run/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs index bae9567..ddac394 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -465,6 +465,9 @@ impl parse::Expander for Executor { ) -> Result<BString, Self::Error> { match &var[..] { b"CWD_PRETTY" => return Ok(crate::pretty_cwd().into_bytes()), + b"PISH_VERSION" => return Ok(crate::consts::PISH_VERSION.as_bytes().to_vec()), + b"PISH_COMMIT" => return Ok(crate::consts::PISH_COMMIT.as_bytes().to_vec()), + b"PISH_DIRTY" => return Ok(vec![crate::consts::PISH_DIRTY as u8 + b'0']), _ => {} } |
