From 1cc284aa39146d417b852321041450f5a8089177 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 15 Jul 2014 16:05:50 +0200 Subject: zshrc: Bump history count and enable extended/incremental history Bump history count to 500000 because loosing old history is horrible Enable extended history and incremental append of new history --- zsh/.zshrc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 2fae521..ed0679e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,6 @@ HISTFILE=~/.config/zsh/.zsh_history -HISTSIZE=5000 -SAVEHIST=5000 +HISTSIZE=500000 +SAVEHIST=500000 setopt notify fpath=(~/.local/share/zsh/completion $fpath) @@ -9,7 +9,6 @@ zstyle :compinstall filename "$HOME/.config/zsh/.zshrc" al=(colors compinit promptinit - vcs_info ) autoload -Uz $al compinit @@ -20,6 +19,8 @@ shellopts=(PROMPT_SUBST completealiases auto_cd interactivecomments + inc_append_history + extendedhistory ) setopt $shellopts @@ -37,8 +38,6 @@ fi #for f in ~/.config/zsh/zsh.d/*.zsh # source $f -source /usr/share/doc/pkgfile/command-not-found.zsh - PS1=$'%{${fg[blue]}%}%B%~%b%{${fg[blue]}%} %B%#%b %{${fg[default]}%}' #PS1=$'┌─[${fg[cyan]}%B%n%b ${fg[blue]}%B%~%b$fg[default]]\n└─╼ ' @@ -73,11 +72,6 @@ alias 'please?'='sudo $(history | tail -n1 | cut -c 8-)' alias acp='acp -g' alias amv='amv -g' -# Use 'git's completions with 'hub' -if type compdef >/dev/null; then - compdef hub=git -fi - # Colored man man() { env LESS_TERMCAP_mb=$(printf "\e[1;31m") \ -- cgit v1.2.3-70-g09d2