Only migrate histfile if target doesn't exist
This commit is contained in:
parent
8812ef8544
commit
ee2dac70db
2
zshenv
2
zshenv
@ -16,7 +16,7 @@ HISTSIZE=20000
|
|||||||
SAVEHIST=20000
|
SAVEHIST=20000
|
||||||
|
|
||||||
# Migrate histfile from cache to state directory
|
# Migrate histfile from cache to state directory
|
||||||
[ -f $HOME/.cache/zsh/histfile ] && \
|
! [ -f $HISTFILE ] && [ -f $HOME/.cache/zsh/histfile ] && \
|
||||||
mv $HOME/.cache/zsh/histfile \
|
mv $HOME/.cache/zsh/histfile \
|
||||||
${XDG_STATE_HOME:-$HOME/.local/state}/zsh/histfile
|
${XDG_STATE_HOME:-$HOME/.local/state}/zsh/histfile
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user