aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-24 11:32:11 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-24 11:45:04 +0100
commit38885a50be3be0942d13a170c0c135cb3e837426 (patch)
tree42095c20baaa56918f584b810e233bd2cd8c15f6
parent549a17e621af6cd8740e3379337903028c169ae3 (diff)
downloadshellrc-38885a50be3be0942d13a170c0c135cb3e837426.tar.gz
shellrc-38885a50be3be0942d13a170c0c135cb3e837426.tar.bz2
shellrc-38885a50be3be0942d13a170c0c135cb3e837426.zip
pkgs/shellrc-bash: fix source to load actually all files
-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