diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-15 16:05:50 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-07-15 16:05:50 +0200 |
commit | 1cc284aa39146d417b852321041450f5a8089177 (patch) | |
tree | 01f2be5fe22ec2d13a6dba78b2f085007472e7cc | |
parent | 648c4cbc0fb133ff14335e5dddfc9844c881d321 (diff) | |
download | dotfiles-1cc284aa39146d417b852321041450f5a8089177.tar.xz |
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
-rw-r--r-- | zsh/.zshrc | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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") \ |