nixpkgs/pkgs/shells/fish
Klemens Nanni fa5867073f pkgs/shells/fish: Fix completion file generator
Cherry-pick upstream commit to ensure that completions for commands
like mkfs.xfs(8) end up in mkfs.xfs.fish by fixing over-eager stripping
of file extensions.

All mkfs.*(8) (and fsck.*(8), etc.) programs would yield mkfs.fish files
with unique `complete -c mkfs ...` lines using the same command.

Thus completing `mkfs` in fish would for example yield XFS specific
suggestions, given "xfsprogs" was installed **and** won over other
packages.

Noticed through build logs:
```
building '/nix/store/5fz5jgkd2ycx5fk3lb30my2hr2br639f-system_fish-completions.drv'...
warning: collision between `/nix/store/1z01j2pma0l005w3qg6slndn0rp136s8-dosfstools-4.2_fish-completions/mkfs.fish' and `/nix/store/jxxgrng41l6qakg45fksk1qpil976vgi-xfsprogs-5.16.0_fish-completions/mkfs.fish'
```
2022-06-03 14:19:52 -07:00
..
oh-my-fish pkgs/shells: enable strictDeps 2022-05-06 22:31:38 +03:00
plugins fishPlugins.grc: init at unstable-2022-05-24 2022-05-27 13:13:55 +02:00
babelfish.nix babelfish: 1.0.1 -> 1.1.0 2021-02-01 21:25:48 +09:00
default.nix pkgs/shells/fish: Fix completion file generator 2022-06-03 14:19:52 -07:00
wrapper.nix wrapFish: fix early variable expansion 2021-10-28 23:10:08 +08:00