diff options
author | Alan Pearce | 2020-12-29 12:43:31 +0100 |
---|---|---|
committer | Alan Pearce | 2020-12-29 20:00:43 +0100 |
commit | 1b86a1fb4d2234ebca4c6992031170f483a47379 (patch) | |
tree | b766ef1b2812f15a241af4692fc7a081994ce01a | |
parent | 6c90b0cc95e05ebdd25bbe1a41aa586643f494c7 (diff) | |
download | nixfiles-1b86a1fb4d2234ebca4c6992031170f483a47379.tar.lz nixfiles-1b86a1fb4d2234ebca4c6992031170f483a47379.tar.zst nixfiles-1b86a1fb4d2234ebca4c6992031170f483a47379.zip |
zsh: fix HISTFILE setup
-rw-r--r-- | user/settings/zsh.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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; |