From 38885a50be3be0942d13a170c0c135cb3e837426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Mar 2023 11:32:11 +0100 Subject: pkgs/shellrc-bash: fix source to load actually all files --- pkgs.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs.nix b/pkgs.nix index d9b1074..a62e8b2 100644 --- a/pkgs.nix +++ b/pkgs.nix @@ -6,10 +6,11 @@ nativeBuildInputs = [pkgs.installShellFiles]; installPhase = '' mkdir -p "$out/bin" - cat >"$out/bin/shellrc-bash" <"$out/bin/shellrc-bash" <<"EOF" #!/usr/bin/env bash - echo source ${./bashrc.d}/*; - echo source ${./shellrc.d}/*; + for file in ${./bashrc.d}/* ${./shellrc.d}/*; do + echo "source $file;" + done EOF chmod +x "$out/bin/shellrc-bash" for comp in bash-completion/*; do -- cgit v1.2.3