aboutsummaryrefslogtreecommitdiffstats
path: root/src/shell/atuin.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell/atuin.bash')
-rw-r--r--src/shell/atuin.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell/atuin.bash b/src/shell/atuin.bash
index 8f2c86f2..e47e3c98 100644
--- a/src/shell/atuin.bash
+++ b/src/shell/atuin.bash
@@ -26,9 +26,9 @@ __atuin_history ()
}
-if [[ -v BLE_VERSION ]]; then
- blehook PRECMD+=_atuin_precmd
- blehook PREEXEC+=_atuin_preexec
+if [[ -n "${BLE_VERSION-}" ]]; then
+ blehook PRECMD-+=_atuin_precmd
+ blehook PREEXEC-+=_atuin_preexec
else
precmd_functions+=(_atuin_precmd)
preexec_functions+=(_atuin_preexec)