Move zsh history to XDG data directory
This commit is contained in:
@ -28,7 +28,7 @@ unsetopt GLOB_DOTS
|
|||||||
unsetopt NOMATCH
|
unsetopt NOMATCH
|
||||||
|
|
||||||
## History
|
## History
|
||||||
HISTFILE="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/history"
|
HISTFILE="${XDG_DATA_HOME:-${HOME}/.local/share}/zsh/history"
|
||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
SAVEHIST=1000000
|
SAVEHIST=1000000
|
||||||
[[ !( -f "${HISTFILE}" ) ]] && mkdir -p $(dirname ${HISTFILE})
|
[[ !( -f "${HISTFILE}" ) ]] && mkdir -p $(dirname ${HISTFILE})
|
||||||
|
Reference in New Issue
Block a user