File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,17 @@ PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
246246SCREENRC=" $XDG_CONFIG_HOME " /screen/screenrc
247247
248248ZSH_AUTOSUGGEST_STRATEGY=(history completion)
249+
250+ # History configuration // explicit to not nuke history
249251HISTFILE=${HISTFILE:- $HOME / .zsh_history}
252+ HISTSIZE=10000
253+ SAVEHIST=10000
254+ setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format
255+ setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits
256+ setopt SHARE_HISTORY # Share history between all sessions
257+ setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history
258+ setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again
259+ setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate
250260
251261# HyDE Package Manager
252262PM_COMMAND=(hyde-shell pm)
You can’t perform that action at this time.
0 commit comments