fix backspace and delete
This commit is contained in:
@@ -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 '
|
||||
|
||||
9
.zshrc
9
.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user