Skip to content

Commit

Permalink
Restore bash 4.2 compatibility, only add hook once (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Feb 15, 2022
1 parent 7651f89 commit 4223ac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shell/atuin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4223ac6

Please sign in to comment.