commit 2916345cd0436d6953d82b9b4ac5e198e1e87d57
parent 625a40dc92af406c0b2c0fdd55ad950ffad50ea3
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Wed, 24 Mar 2021 11:48:43 +0100
zsh smarter history
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -5,12 +5,13 @@ setopt PROMPT_SUBST
PS1='%B%{$fg[magenta]%}%n%{$fg[blue]%}@%{$fg[green]%}%M %{$fg[yellow]%}%~%b%{$fg[cyan]%}$(git-head-abbrev)%{$fg[red]%}$%{$reset_color%} '
# Set up history and history file
-HISTSIZE=1000
-SAVEHIST=1000
+HISTSIZE=100000
+SAVEHIST=100000
HISTFILE=~/.cache/zsh/history
setopt HIST_IGNORE_DUPS
setopt HIST_FIND_NO_DUPS
+setopt EXTENDED_HISTORY
# Set up navigation menu when pressing tab multiple times
autoload -U compinit