Browse Source

Add history keybinds to zsh

master
Riyyi 6 years ago
parent
commit
8c6ee1dead
  1. 8
      .config/zsh/.zshrc

8
.config/zsh/.zshrc

@ -22,7 +22,7 @@ export QT_QPA_PLATFORMTHEME="qt5ct"
## ZSH ## ZSH
autoload -Uz promptinit colors vcs_info compinit autoload -Uz promptinit colors vcs_info compinit history-search-end
# Prompt # Prompt
promptinit promptinit
@ -59,11 +59,17 @@ zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
# Bind keys # Bind keys
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey '\eOd' backward-word bindkey '\eOd' backward-word
bindkey '\eOc' forward-word bindkey '\eOc' forward-word
bindkey '\e[7~' beginning-of-line bindkey '\e[7~' beginning-of-line
bindkey '\e[3~' delete-char bindkey '\e[3~' delete-char
bindkey '\e[8~' end-of-line bindkey '\e[8~' end-of-line
bindkey '\e[A' history-beginning-search-backward-end
bindkey '\e[B' history-beginning-search-forward-end
bindkey '^R' history-incremental-pattern-search-backward
# History # History
setopt APPEND_HISTORY setopt APPEND_HISTORY

Loading…
Cancel
Save