Skip to content

Commit

Permalink
Add history settings to .zshrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
hironow committed Nov 30, 2024
1 parent 43cf97e commit 1d9b178
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,18 @@ fi
if _cmd_exists terramate; then
alias t="terramate"
fi


# history settings
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
setopt INC_APPEND_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST

0 comments on commit 1d9b178

Please sign in to comment.