diff --git a/.zsh/history.zsh b/.zsh/history.zsh index 267af14..f0b901a 100644 --- a/.zsh/history.zsh +++ b/.zsh/history.zsh @@ -18,7 +18,13 @@ function my-history-prefix-search() { --limit 1 \ --offset $offset \ --format '{command}' \ - "$MY_HISTORY_SEARCH_PREFIX" + "$MY_HISTORY_SEARCH_PREFIX" || + atuin search \ + --search-mode prefix \ + --limit 1 \ + --offset $offset \ + --format '{command}' \ + "$MY_HISTORY_SEARCH_PREFIX" || ) if [[ -n "$result" ]]; then BUFFER=$result