From b77cff948b519b4392a7bc03c4db9995a164b9ac Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 8 May 2014 15:49:47 +0200 Subject: zshrc: muchos history, no more git info, reverse history with glob --- zsh/.zshrc | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index c46b2cc..2fae521 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,6 @@ HISTFILE=~/.config/zsh/.zsh_history -HISTSIZE=500 -SAVEHIST=500 +HISTSIZE=5000 +SAVEHIST=5000 setopt notify fpath=(~/.local/share/zsh/completion $fpath) @@ -39,28 +39,16 @@ fi source /usr/share/doc/pkgfile/command-not-found.zsh -#zstyle ':vcs_info:*' check-for-changes true - -zstyle ':vcs_info:git*' stagedstr "✚ " -zstyle ':vcs_info:git*' unstagedstr "● " - -zstyle ':vcs_info:git*' formats "「%b %u%c%m」" - -zstyle ':vcs_info:*' enable git -precmd() { - vcs_info -} - PS1=$'%{${fg[blue]}%}%B%~%b%{${fg[blue]}%} %B%#%b %{${fg[default]}%}' #PS1=$'┌─[${fg[cyan]}%B%n%b ${fg[blue]}%B%~%b$fg[default]]\n└─╼ ' -RPS1='%{${fg[blue]}%}${vcs_info_msg_0_}%{${fg[default]}%}' # Vi keybindings bindkey -v # Bind " H" to run-help (man pages) bindkey -M vicmd 'H' run-help -bindkey "^R" history-incremental-search-backward +bindkey "^R" history-incremental-pattern-search-backward +bindkey -M isearch '^M' accept-search # Don't run commands when retrieving from history autoload -U edit-command-line zle -N edit-command-line -- cgit v1.2.3-54-g00ecf