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