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
|
||||
nixpkgs-fmt
|
||||
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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue