From b174c27a5bff76de8c8c08080cb777c848d0acef Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 18 Oct 2022 11:08:54 +0200 Subject: [PATCH] fix(zsh): restore broken keybindings relates to #2617 --- src/shell/scripts/omp.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shell/scripts/omp.zsh b/src/shell/scripts/omp.zsh index 96ea47e6..09dd79fe 100644 --- a/src/shell/scripts/omp.zsh +++ b/src/shell/scripts/omp.zsh @@ -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