Skip to content

Commit 032ca19

Browse files
authored
Revert "fix(bash): avoid unexpected atuin history start for keybindings (#1…" (#1727)
This reverts commit 86f2c8e.
1 parent 4512cd5 commit 032ca19

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

atuin/src/shell/atuin.bash

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ export ATUIN_SESSION
1717
ATUIN_HISTORY_ID=""
1818

1919
__atuin_preexec() {
20-
if [[ ! ${BLE_ATTACHED-} ]]; then
21-
# With bash-preexec, preexec may be called even for the command run by
22-
# keybindings. There is no general and robust way to detect the
23-
# command for keybindings, but at least we want to exclude Atuin's
24-
# keybindings.
25-
[[ $BASH_COMMAND == '__atuin_history'* && $BASH_COMMAND != "$1" ]] && return 0
26-
fi
27-
2820
local id
2921
id=$(atuin history start -- "$1")
3022
export ATUIN_HISTORY_ID=$id

0 commit comments

Comments
 (0)