fix(zsh): macos history retention
This commit is contained in:
parent
9f03735f94
commit
fa94c7d878
4
zshenv
4
zshenv
|
@ -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
7
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue