From 7f73b96d25ef984748e5c60134587f067210789e Mon Sep 17 00:00:00 2001 From: ShatteredMINT Date: Wed, 9 Oct 2024 15:24:58 +0200 Subject: [PATCH] fix backspace and delete --- .zsh_theme | 5 +++++ .zshrc | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.zsh_theme b/.zsh_theme index f1342eb..df9f0c7 100644 --- a/.zsh_theme +++ b/.zsh_theme @@ -1,2 +1,7 @@ +autoload -Uz vcs_info +precmd() { vcs_info } + +zstyle ':vcs_info:git:*' formats '%b ' + setopt PROMPT_SUBST PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f ' diff --git a/.zshrc b/.zshrc index 7d61e4e..eea81d5 100644 --- a/.zshrc +++ b/.zshrc @@ -22,13 +22,12 @@ bindkey -v #### custom config # keybinds bindkey -M vicmd 'k' history-search-backward +bindkey -M vicmd 'j' history-search-forward bindkey -M viins '^k' history-search-backward +bindkey -M viins '^j' history-search-forward -# prompt -autoload -Uz vcs_info -precmd() { vcs_info } - -zstyle ':vcs_info:git:*' formats '%b ' +bindkey '^?' backward-delete-char +bindkey '\e[3~' delete-char source ~/.zsh_theme