Compare commits

...

2 Commits

Author SHA1 Message Date
49972b75fa
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
2024-08-29 23:37:14 -05:00
eba320f53b
refactor(hosts/orion): disable global comp init for zsh 2024-08-29 23:36:51 -05:00
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@
zsh = { zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
enableGlobalCompInit = false;
enableBashCompletion = true; enableBashCompletion = true;
}; };
nix-ld.enable = true; nix-ld.enable = true;

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";
}; };
} }