From 235cd297c5a4e5cb9c7fa8695ae1bb5f8c719134 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:13:56 -0500 Subject: [PATCH] silencing warning --- modules/features/shell-tools.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/features/shell-tools.nix b/modules/features/shell-tools.nix index 4cdcd08..f9c8e6f 100644 --- a/modules/features/shell-tools.nix +++ b/modules/features/shell-tools.nix @@ -29,8 +29,9 @@ perSystem = { system, pkgs, self', ... }: { packages.shell-tools = inputs.wrappers.lib.wrapPackage { inherit pkgs; + # binName = "show-tools"; package = (pkgs.symlinkJoin { - name = "shell-tools"; + name = "show-tools"; paths = with pkgs; [ nh ripgrep @@ -44,6 +45,19 @@ hostname iproute2 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 + ''; + }) ]; }); };