lol
at master 30 lines 819 B view raw
1{ 2 lib, 3 installShellFiles, 4 runCommandLocal, 5}: 6 7runCommandLocal "install-shell-files--install-completion-cmd" 8 { 9 nativeBuildInputs = [ installShellFiles ]; 10 meta.platforms = lib.platforms.all; 11 } 12 '' 13 echo foo > foo.bash 14 echo bar > bar.zsh 15 echo baz > baz.fish 16 echo qux > qux.fish 17 echo buzz > buzz.nu 18 19 installShellCompletion \ 20 --cmd foobar --bash foo.bash \ 21 --zsh bar.zsh \ 22 --fish baz.fish --name qux qux.fish \ 23 --nushell --cmd buzzbar buzz.nu 24 25 cmp foo.bash $out/share/bash-completion/completions/foobar.bash 26 cmp bar.zsh $out/share/zsh/site-functions/_foobar 27 cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish 28 cmp qux.fish $out/share/fish/vendor_completions.d/qux 29 cmp buzz.nu $out/share/nushell/vendor/autoload/buzzbar.nu 30 ''