summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2024-02-17 09:48:15 +0000
committerGitHub <noreply@github.com>2024-02-17 09:48:15 +0000
commit032ca19c73be45c39a2d7a9972cb7d47d34d31ce (patch)
tree2dee34fb101104a4d1945184113dc32cd85171d7
parent4512cd5c7f853700c5ace9d318f25f210798a759 (diff)
Revert "fix(bash): avoid unexpected `atuin history start` for keybindings (#1…" (#1727)
-rw-r--r--atuin/src/shell/atuin.bash8
1 files changed, 0 insertions, 8 deletions
diff --git a/atuin/src/shell/atuin.bash b/atuin/src/shell/atuin.bash
index e40e8c56..4cd19b7e 100644
--- a/atuin/src/shell/atuin.bash
+++ b/atuin/src/shell/atuin.bash
@@ -17,14 +17,6 @@ export ATUIN_SESSION
ATUIN_HISTORY_ID=""
__atuin_preexec() {
- if [[ ! ${BLE_ATTACHED-} ]]; then
- # With bash-preexec, preexec may be called even for the command run by
- # keybindings. There is no general and robust way to detect the
- # command for keybindings, but at least we want to exclude Atuin's
- # keybindings.
- [[ $BASH_COMMAND == '__atuin_history'* && $BASH_COMMAND != "$1" ]] && return 0
- fi
-
local id
id=$(atuin history start -- "$1")
export ATUIN_HISTORY_ID=$id