From 93b6832027284d1cf2de1c7ede1b4e16ce4c574d Mon Sep 17 00:00:00 2001 From: meshya Date: Sun, 17 Nov 2024 01:30:40 +0330 Subject: [PATCH] edit example --- rootfs/usr/share/parchlinux/zsh/zshrc-example | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rootfs/usr/share/parchlinux/zsh/zshrc-example b/rootfs/usr/share/parchlinux/zsh/zshrc-example index 87846fb..d67dcf5 100644 --- a/rootfs/usr/share/parchlinux/zsh/zshrc-example +++ b/rootfs/usr/share/parchlinux/zsh/zshrc-example @@ -1,4 +1,3 @@ - #load modules source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh source /usr/share/parchlinux/zsh/theme/parch.zsh-theme @@ -47,14 +46,14 @@ key[Shift-Tab]="${terminfo[kcbt]}" [[ -n "${key[Insert]}" ]] && bindkey -- "${key[Insert]}" overwrite-mode [[ -n "${key[Backspace]}" ]] && bindkey -- "${key[Backspace]}" backward-delete-char [[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char -[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-history -[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-history +bindkey '^[[A' history-substring-search-up +bindkey '^[[B' history-substring-search-down [[ -n "${key[Left]}" ]] && bindkey -- "${key[Left]}" backward-char [[ -n "${key[Right]}" ]] && bindkey -- "${key[Right]}" forward-char [[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history [[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history [[ -n "${key[Shift-Tab]}" ]] && bindkey -- "${key[Shift-Tab]}" reverse-menu-complete - +bindkey '^[^?' backward-kill-word if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then autoload -Uz add-zle-hook-widget function zle_application_mode_start { echoti smkx }