From 1b86a1fb4d2234ebca4c6992031170f483a47379 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 29 Dec 2020 12:43:31 +0100 Subject: zsh: fix HISTFILE setup --- user/settings/zsh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user/settings/zsh.nix') diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index 47945755..64157ba3 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -36,6 +36,9 @@ in 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 @@ in history = { expireDuplicatesFirst = true; extended = true; - path = "\${XDG_DATA_HOME#$HOME/}/zsh/history"; + path = "\${XDG_DATA_HOME}/zsh/history"; save = 20000; size = 10000; share = false; -- cgit 1.4.1