diff options
Diffstat (limited to 'atuin-common/src')
| -rw-r--r-- | atuin-common/src/utils.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index 87c4b14c..889c7811 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -101,6 +101,11 @@ pub fn is_bash() -> bool { env::var("ATUIN_SHELL_BASH").is_ok() } +pub fn is_xonsh() -> bool { + // only set on xonsh + env::var("ATUIN_SHELL_XONSH").is_ok() +} + /// Extension trait for anything that can behave like a string to make it easy to escape control /// characters. /// |
