aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:05:50 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-07-15 16:05:50 +0200
commit1cc284aa39146d417b852321041450f5a8089177 (patch)
tree01f2be5fe22ec2d13a6dba78b2f085007472e7cc
parent648c4cbc0fb133ff14335e5dddfc9844c881d321 (diff)
downloaddotfiles-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/.zshrc14
1 files 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") \