feat(devos/nix): add wherenix script
This commit is contained in:
parent
eb57056dcc
commit
461e91a5e7
1 changed files with 9 additions and 0 deletions
|
@ -55,6 +55,15 @@ with lib;
|
||||||
nixfmt
|
nixfmt
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nix-du
|
nix-du
|
||||||
|
|
||||||
|
(writeScriptBin "wherenix" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
${unixtools.whereis}/bin/whereis "''${@}" \
|
||||||
|
| ${gawk}/bin/awk '{ print substr($0, length($1)+2) }' \
|
||||||
|
| ${findutils}/bin/xargs -r ${coreutils}/bin/readlink -f \
|
||||||
|
| ${coreutils}/bin/sort \
|
||||||
|
| ${coreutils}/bin/uniq
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
|
|
||||||
shellAliases =
|
shellAliases =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue