3
0
Fork 0
forked from mirrors/nixpkgs

fd: install shell completions

This commit is contained in:
dywedir 2017-11-16 11:58:32 +02:00
parent 67b4e7a4c0
commit 23705ce319

View file

@ -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; {