evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / in / installShellFiles / tests / install-completion-name.nix
blob2473318dee2c1de187a501e185a115531310a05c
2   lib,
3   installShellFiles,
4   runCommandLocal,
5 }:
7 runCommandLocal "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
17     installShellCompletion --bash --name foobar.bash foo --zsh --name _foobar bar --fish baz
19     cmp foo $out/share/bash-completion/completions/foobar.bash
20     cmp bar $out/share/zsh/site-functions/_foobar
21     cmp baz $out/share/fish/vendor_completions.d/baz
22   ''