feat(users/Profpatsch/nix-home): add findia* aliases
Change-Id: I66d3e69ae2cb4cf56a49c970f59f62fa945dd736 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4840 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> Autosubmit: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
723c21ddb6
commit
baecea1cbe
2 changed files with 101 additions and 6 deletions
75
users/Profpatsch/aliases.nix
Normal file
75
users/Profpatsch/aliases.nix
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{ depot, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
bins = depot.nix.getBins pkgs.findutils [ "find" ];
|
||||
|
||||
in
|
||||
depot.nix.readTree.drvTargets {
|
||||
|
||||
findia = depot.nix.writeExecline "findia"
|
||||
{
|
||||
readNArgs = 1;
|
||||
# TODO: comment out, thanks to sterni blocking the runExecline change
|
||||
# meta.description = ''
|
||||
# Find case-insensitive anywhere (globbing)
|
||||
|
||||
# Usage: findia <pattern> <more find(1) arguments>
|
||||
# '';
|
||||
} [
|
||||
bins.find
|
||||
"-iname"
|
||||
"*\${1}*"
|
||||
"$@"
|
||||
];
|
||||
|
||||
findial = depot.nix.writeExecline "findial"
|
||||
{
|
||||
readNArgs = 1;
|
||||
# TODO: comment out, thanks to sterni blocking the runExecline change
|
||||
# meta.description = ''
|
||||
# Find case-insensitive anywhere (globbing), follow symlinks";
|
||||
|
||||
# Usage: findial <pattern> <more find(1) arguments>
|
||||
# '';
|
||||
} [
|
||||
bins.find
|
||||
"-L"
|
||||
"-iname"
|
||||
"*\${1}*"
|
||||
"$@"
|
||||
];
|
||||
|
||||
findian = depot.nix.writeExecline "findian"
|
||||
{
|
||||
readNArgs = 2;
|
||||
# TODO: comment out, thanks to sterni blocking the runExecline change
|
||||
# meta.description = ''
|
||||
# Find case-insensitive anywhere (globbing) in directory
|
||||
|
||||
# Usage: findian <directory> <pattern> <more find(1) arguments>
|
||||
# '';
|
||||
} [
|
||||
bins.find
|
||||
"$1"
|
||||
"-iname"
|
||||
"*\${2}*"
|
||||
"$@"
|
||||
];
|
||||
|
||||
findiap = depot.nix.writeExecline "findiap"
|
||||
{
|
||||
readNArgs = 2;
|
||||
# TODO: comment out, thanks to sterni blocking the runExecline change
|
||||
# meta.description = ''
|
||||
# Find case-insensitive anywhere (globbing) in directory, the pattern allows for paths.
|
||||
|
||||
# Usage: findiap <directory> <pattern> <more find(1) arguments>
|
||||
# '';
|
||||
} [
|
||||
bins.find
|
||||
"$1"
|
||||
"-ipath"
|
||||
"*\${2}*"
|
||||
"$@"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue