diff --git a/src/shell/scripts/omp.zsh b/src/shell/scripts/omp.zsh index 09dd79fe..f57de01a 100644 --- a/src/shell/scripts/omp.zsh +++ b/src/shell/scripts/omp.zsh @@ -109,11 +109,9 @@ if [[ "::TRANSIENT::" = "true" ]]; then zle -N zle-line-init _posh-zle-line-init # restore broken key bindings - # https://github.com/JanDeDobbeleer/oh-my-posh/discussions/2617#discussioncomment-3888718 - bindkey '^[[A' up-line-or-search - bindkey '^[[B' down-line-or-search - bindkey '^[[F' end-of-line - bindkey '^[[H' beginning-of-line + # https://github.com/JanDeDobbeleer/oh-my-posh/discussions/2617#discussioncomment-3911044 + bindkey '^[[A' up-line-or-beginning-search + bindkey '^[[B' down-line-or-beginning-search fi # legacy functions for backwards compatibility