zsh: fix key binding to clear screen
This commit is contained in:
parent
8d4497dab2
commit
1412a7a9b9
1 changed files with 10 additions and 1 deletions
11
files/zshrc
11
files/zshrc
|
@ -31,6 +31,15 @@ zle-keymap-select() {
|
||||||
}
|
}
|
||||||
zle -N zle-keymap-select
|
zle -N zle-keymap-select
|
||||||
|
|
||||||
|
#autoload -U compinit
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
#autoload -U compinit && compinit
|
||||||
|
|
||||||
|
bindkey -M menuselect 'h' vi-backward-char
|
||||||
|
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||||
|
bindkey -M menuselect 'l' vi-forward-char
|
||||||
|
bindkey -M menuselect 'j' vi-down-line-or-history
|
||||||
|
|
||||||
# Search through history in insert mode.
|
# Search through history in insert mode.
|
||||||
bindkey -M viins '^j' history-beginning-search-forward
|
bindkey -M viins '^j' history-beginning-search-forward
|
||||||
bindkey -M viins '^k' history-beginning-search-backward
|
bindkey -M viins '^k' history-beginning-search-backward
|
||||||
|
@ -38,5 +47,5 @@ bindkey -M viins '^k' history-beginning-search-backward
|
||||||
# Restore some common and useful emacs mode shortcut.
|
# Restore some common and useful emacs mode shortcut.
|
||||||
bindkey -M viins '^a' vi-beginning-of-line
|
bindkey -M viins '^a' vi-beginning-of-line
|
||||||
bindkey -M viins '^e' vi-end-of-line
|
bindkey -M viins '^e' vi-end-of-line
|
||||||
bindkey -M viins '^l' vi-end-of-line
|
bindkey -M viins '^l' clear-screen
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue