Skip to content

Commit

Permalink
zsh: fix autocomp
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Feb 29, 2024
1 parent 6f417d1 commit afd14e2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions home/modules/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ in
'';

# Picks up all files in all `home.packages` that contain '#compdef' and puts them into one completion directory.
xdg.configFile."zsh/vendor-completions".source = with pkgs;
runCommandNoCC "vendored-zsh-completions" {} ''
mkdir -p $out
${fd}/bin/fd -t f '^_[^.]+$' \
${lib.escapeShellArgs home.packages} \
--exec ${ripgrep}/bin/rg -0l '^#compdef' {} \
| xargs -0 cp -n -t $out/
'';
# xdg.configFile."zsh/vendor-completions".source = with pkgs;
# runCommandNoCC "vendored-zsh-completions" {} ''
# mkdir -p $out
# ${fd}/bin/fd -t f '^_[^.]+$' \
# ${lib.escapeShellArgs config.home.packages} \
# --exec ${ripgrep}/bin/rg -0l '^#compdef' {} \
# | xargs -0 cp -n -t $out/
# '';
};
}

0 comments on commit afd14e2

Please sign in to comment.