commit d391b7cdaf6f283978f46e3a4e7bdefc1eb2278b
parent bc9b7033aeee4e0d7b94ff08a98f97e02e283568
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date: Sat, 14 Dec 2019 23:43:52 +0100
Increase hist size
Diffstat:
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/zsh/zshrc b/zsh/zshrc
@@ -44,6 +44,11 @@ if [ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]; th
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=2'
fi
+# fzf file history
+if [ -f /usr/share/fzf/key-bindings.zsh ]; then
+ source /usr/share/fzf/key-bindings.zsh
+fi
+
#######################
### Options ###########
#######################
@@ -57,7 +62,7 @@ setopt RC_EXPAND_PARAM # Expand globbing arrays to full names
setopt NO_BEEP # Disable system beeps
setopt MARK_DIRS # Always append trailing / to dirs
setopt APPEND_HISTORY # Append to history file instead of overwriting
-setopt HIST_IGNORE_DUPS # Ignore adjacent history dups
+setopt HIST_IGNORE_ALL_DUPS # Ignore all history dups
setopt AUTO_CD # No need to type 'cd' if standard input is a valid path
setopt PROMPT_SUBST # Enable command substitution in prompt
@@ -67,8 +72,8 @@ setopt PROMPT_SUBST # Enable command substitution in prompt
# Set history options
HISTFILE=~/.zhistory
-HISTSIZE=1000
-SAVEHIST=500
+HISTSIZE=10000
+SAVEHIST=10000
# Source aliases
if [ -f ~/.zsh_aliases ]; then
@@ -184,4 +189,3 @@ else
fi
unset __conda_setup
# <<< conda initialize <<<
-