fix(zsh): macos history retention

This commit is contained in:
Rob Watson 2024-05-20 09:05:30 +02:00
parent 9f03735f94
commit fa94c7d878
2 changed files with 7 additions and 4 deletions

4
zshenv
View File

@ -10,10 +10,6 @@ export BROWSER=firefox
# ZSH: # ZSH:
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$ZDOTDIR/.zsh_history"
export HISTSIZE=100000
export SAVEHIST=100000
export HISTTIMEFORMAT="[%F %T] "
# UI # UI
# `vivid generate molokai` # `vivid generate molokai`

7
zshrc
View File

@ -1,6 +1,13 @@
# $HOME/.config/zsh/.zshrc # $HOME/.config/zsh/.zshrc
# Note: Install zsh-completions package # Note: Install zsh-completions package
# Moved from zshenv because they were being inexplicably overwritten or ignored
# on Macos:
export HISTFILE="$ZDOTDIR/.zsh_history"
export HISTSIZE=100000
export SAVEHIST=100000
export HISTTIMEFORMAT="[%F %T] "
setopt hist_find_no_dups setopt hist_find_no_dups
setopt extended_history setopt extended_history
setopt share_history setopt share_history