diff options
author | Karel Kočí <cynerd@email.cz> | 2023-03-24 11:32:11 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-03-24 11:45:04 +0100 |
commit | 38885a50be3be0942d13a170c0c135cb3e837426 (patch) | |
tree | 42095c20baaa56918f584b810e233bd2cd8c15f6 | |
parent | 549a17e621af6cd8740e3379337903028c169ae3 (diff) | |
download | shellrc-38885a50be3be0942d13a170c0c135cb3e837426.tar.gz shellrc-38885a50be3be0942d13a170c0c135cb3e837426.tar.bz2 shellrc-38885a50be3be0942d13a170c0c135cb3e837426.zip |
pkgs/shellrc-bash: fix source to load actually all files
-rw-r--r-- | pkgs.nix | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |