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
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m3s
This commit is contained in:
parent
5567977f2a
commit
f4e3c4a7eb
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user