From 23705ce319705a17ca38e56b33da9c833d8c4f35 Mon Sep 17 00:00:00 2001 From: dywedir Date: Thu, 16 Nov 2017 11:58:32 +0200 Subject: [PATCH] fd: install shell completions --- pkgs/tools/misc/fd/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/fd/default.nix b/pkgs/tools/misc/fd/default.nix index 09debd461dc4..5ac5233c9165 100644 --- a/pkgs/tools/misc/fd/default.nix +++ b/pkgs/tools/misc/fd/default.nix @@ -16,6 +16,11 @@ rustPlatform.buildRustPackage rec { preFixup = '' mkdir -p "$out/man/man1" cp "$src/doc/fd.1" "$out/man/man1" + + mkdir -p "$out/share/"{bash-completion/completions,fish/completions,zsh/site-functions} + cp target/release/build/fd-find-*/out/fd.bash-completion "$out/share/bash-completion/completions/" + cp target/release/build/fd-find-*/out/fd.fish "$out/share/fish/completions/" + cp target/release/build/fd-find-*/out/_fd "$out/share/zsh/site-functions/" ''; meta = with stdenv.lib; {