From 1fdba8cdab95be180c80ed8e333fe080a867faaf Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 5 Sep 2024 21:13:43 +0900 Subject: [PATCH] Attempt to delegate to source_sh for completion --- home-manager/zsh.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 26dfb3dd..df029ca6 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -139,8 +139,6 @@ completionInit = '' # `autoload` enable to use compinit autoload -Uz compinit && _compinit_with_interval - # for cargo-make - autoload -U +X bashcompinit && bashcompinit ''; # Setting bindkey @@ -206,8 +204,6 @@ source "${pkgs.fzf-git-sh}/share/fzf-git-sh/fzf-git.sh" source "${pkgs.podman}/share/zsh/site-functions/_podman" - # cargo-make recommends to use bash completions for zsh - source "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash" source "${../dependencies/dprint/completions.zsh}" source "${../dependencies/goldwarden/completions.zsh}" @@ -222,6 +218,8 @@ } source_sh "${homemade-pkgs.posix_shared_functions}" + # cargo-make recommends to use bash completions for zsh + source_sh "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash" if [ 'linux' = "$TERM" ]; then disable_blinking_cursor