Restore bash 4.2 compatibility, only add hook once (#271)
This commit is contained in:
parent
7651f89261
commit
4223ac6943
1 changed files with 3 additions and 3 deletions
|
@ -26,9 +26,9 @@ __atuin_history ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if [[ -v BLE_VERSION ]]; then
|
if [[ -n "${BLE_VERSION-}" ]]; then
|
||||||
blehook PRECMD+=_atuin_precmd
|
blehook PRECMD-+=_atuin_precmd
|
||||||
blehook PREEXEC+=_atuin_preexec
|
blehook PREEXEC-+=_atuin_preexec
|
||||||
else
|
else
|
||||||
precmd_functions+=(_atuin_precmd)
|
precmd_functions+=(_atuin_precmd)
|
||||||
preexec_functions+=(_atuin_preexec)
|
preexec_functions+=(_atuin_preexec)
|
||||||
|
|
Loading…
Reference in a new issue