dots/users/price/conf/zsh/default.nix
Price Hiller 49972b75fa
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m10s
refactor(hm/price): ensure zcompdump gets put under $XDG_CACHE_HOME
2024-08-29 23:37:14 -05:00

14 lines
354 B
Nix

{ config, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
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";
};
}