refactor(hm/price): ensure zcompdump gets put under $XDG_CACHE_HOME
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m10s

This commit is contained in:
Price Hiller 2024-08-29 23:37:14 -05:00
parent eba320f53b
commit 49972b75fa
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -1,8 +1,13 @@
{ ... }: { config, ... }:
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
initExtra = builtins.readFile ./init-extra.zsh; initExtra = builtins.readFile ./init-extra.zsh;
completionInit =
let
zsh-cache-dir = "${config.xdg.cacheHome}/zsh";
in
"mkdir -p ${zsh-cache-dir} && autoload -U compinit && compinit -d ${zsh-cache-dir}/zcompdump-$ZSH_VERSION";
}; };
} }