diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-05-08 15:49:47 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-05-08 15:49:47 +0200 |
commit | b77cff948b519b4392a7bc03c4db9995a164b9ac (patch) | |
tree | 150fc2774f75ba49bace80db9353bc5fbbd5f487 /zsh | |
parent | 9b7b0a6e1095d0fd843434644a5299101959fe5a (diff) | |
download | dotfiles-b77cff948b519b4392a7bc03c4db9995a164b9ac.tar.xz |
zshrc: muchos history, no more git info, reverse history with glob
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -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 "<command mode> 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 |