refactor(hm/price): do not provide a custom compInit for zsh
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m3s

This commit is contained in:
Price Hiller 2024-07-29 16:38:16 -05:00
parent 5567977f2a
commit f4e3c4a7eb
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -3,21 +3,6 @@
programs.zsh = {
enable = true;
enableCompletion = true;
completionInit = ''
() {
autoload -U compinit
local zsh_cache="''${XDG_CACHE_HOME:-$HOME}/zsh/"
if [[ ! -d "$zsh_cache" ]]; then
mkdir -p "$zsh_cache"
fi
local _comp_files=($zsh_cache/zcompcache(Nm-20))
if (( $#_comp_files )); then
compinit -i -C -d "$zsh_cache/zcompcache"
else
compinit -i -d "$zsh_cache/zcompcache"
fi
}
'';
initExtra = builtins.readFile ./init-extra.zsh;
};
}