silencing warning
This commit is contained in:
@@ -29,8 +29,9 @@
|
|||||||
perSystem = { system, pkgs, self', ... }: {
|
perSystem = { system, pkgs, self', ... }: {
|
||||||
packages.shell-tools = inputs.wrappers.lib.wrapPackage {
|
packages.shell-tools = inputs.wrappers.lib.wrapPackage {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
# binName = "show-tools";
|
||||||
package = (pkgs.symlinkJoin {
|
package = (pkgs.symlinkJoin {
|
||||||
name = "shell-tools";
|
name = "show-tools";
|
||||||
paths = with pkgs; [
|
paths = with pkgs; [
|
||||||
nh
|
nh
|
||||||
ripgrep
|
ripgrep
|
||||||
@@ -44,6 +45,19 @@
|
|||||||
hostname
|
hostname
|
||||||
iproute2
|
iproute2
|
||||||
direnv
|
direnv
|
||||||
|
(writeShellApplication {
|
||||||
|
name = "show-tools";
|
||||||
|
text = ''
|
||||||
|
IFS=':' read -r -a path_dirs <<< "''${PATH:-}"
|
||||||
|
|
||||||
|
for dir in "''${path_dirs[@]}"; do
|
||||||
|
[[ "$dir" == */bin ]] || continue
|
||||||
|
[[ -d "$dir" ]] || continue
|
||||||
|
|
||||||
|
printf '%s\n' "$dir"/*
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user