Skip to content

Commit 55721cb

Browse files
committed
fix(zsh): Explicit history integration
1 parent ca3c158 commit 55721cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Configs/.zshenv

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,17 @@ PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
246246
SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
247247

248248
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
249+
250+
# History configuration // explicit to not nuke history
249251
HISTFILE=${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
252262
PM_COMMAND=(hyde-shell pm)

0 commit comments

Comments
 (0)