aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs.nix7
1 files 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" <<EOF
+ cat >"$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