mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +01:00
Restore bash 4.2 compatibility, only add hook once (#271)
This commit is contained in:
parent
7651f89261
commit
4223ac6943
@ -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 New Issue
Block a user