mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-29 03:34:44 +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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user