diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-10-21 12:34:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 12:34:23 +0100 |
| commit | 08a01e037c915257469755c67d38e3aabe407220 (patch) | |
| tree | 391361855c2b9923e674570fd8ede925ed2e69e8 /atuin-common/src | |
| parent | allow binding server to hostname (#1318) (diff) | |
| download | atuin-08a01e037c915257469755c67d38e3aabe407220.zip | |
Add bash support to `enter_accept` (#1316)
Diffstat (limited to 'atuin-common/src')
| -rw-r--r-- | atuin-common/src/utils.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index 65fa40cf..8358802a 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -119,10 +119,15 @@ pub fn is_zsh() -> bool { } pub fn is_fish() -> bool { - // only set on zsh + // only set on fish env::var("ATUIN_SHELL_FISH").is_ok() } +pub fn is_bash() -> bool { + // only set on bash + env::var("ATUIN_SHELL_BASH").is_ok() +} + #[cfg(test)] mod tests { use time::Month; |
