Skip to content

Instantly share code, notes, and snippets.

@tarot
Last active December 21, 2015 08:19
Show Gist options
  • Save tarot/6277662 to your computer and use it in GitHub Desktop.
Save tarot/6277662 to your computer and use it in GitHub Desktop.
history-beginning-search-*-endにCtrl+P/Nを割り当てると、zstyleでCtrl+P/Nが効かなくなる
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=10000
autoload -Uz compinit
compinit
zstyle ':completion:*:default' menu select=2
bindkey "^[[Z" reverse-menu-complete
autoload -Uz history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end
bindkey "^[[B" history-beginning-search-forward-end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment