From 08a01e037c915257469755c67d38e3aabe407220 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 21 Oct 2023 12:34:23 +0100 Subject: Add bash support to `enter_accept` (#1316) --- atuin-common/src/utils.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'atuin-common/src') 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; -- cgit v1.3.1