all repos — nixfiles @ 1b86a1fb4d2234ebca4c6992031170f483a47379

System and user configuration, managed by nix and home-manager

zsh: fix HISTFILE setup

Alan Pearce
commit

1b86a1fb4d2234ebca4c6992031170f483a47379

parent

6c90b0cc95e05ebdd25bbe1a41aa586643f494c7

1 file changed, 4 insertions(+), 1 deletion(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -36,6 +36,9 @@ if [[ ! -f ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/history ]]; then
mkdir -p ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/ ln ~/.cache/zsh/history ${config.home.sessionVariables.XDG_DATA_HOME}/zsh/history fi + if [[ ! -d "${config.home.sessionVariables.XDG_CACHE_HOME}/zsh" ]]; then + mkdir -p ${config.home.sessionVariables.XDG_CACHE_HOME}/zsh + fi ''; programs.zsh = {
@@ -50,7 +53,7 @@
history = { expireDuplicatesFirst = true; extended = true; - path = "\${XDG_DATA_HOME#$HOME/}/zsh/history"; + path = "\${XDG_DATA_HOME}/zsh/history"; save = 20000; size = 10000; share = false;