fd: install fish shell completions

This commit is contained in:
José Luis Lafuente 2018-02-13 11:51:02 +01:00
parent 67b1d6a16d
commit 0e09abd9c4
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A

View file

@ -17,9 +17,9 @@ rustPlatform.buildRustPackage rec {
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}
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
cp target/release/build/fd-find-*/out/fd.bash "$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.fish "$out/share/fish/vendor_completions.d/"
cp target/release/build/fd-find-*/out/_fd "$out/share/zsh/site-functions/"
'';