mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #31735 from dywedir/fd
fd: install shell completions
This commit is contained in:
commit
e7521b2064
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user