fix(zsh): restore broken keybindings

relates to #2617
This commit is contained in:
Jan De Dobbeleer 2022-10-18 11:08:54 +02:00 committed by Jan De Dobbeleer
parent 130f890b1f
commit b174c27a5b

View file

@ -107,6 +107,13 @@ function _posh-zle-line-init() {
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
fi
# legacy functions for backwards compatibility