1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-10 19:11:03 +01:00

Merge pull request #14021 from jfroche/fix/installer-shell-path

installer: prepend nix paths to shell config files instead of appending
This commit is contained in:
Jörg Thalheim 2025-09-22 18:27:03 +02:00 committed by GitHub
commit dcaf001d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -915,9 +915,11 @@ configure_shell_profile() {
fi fi
if [ -e "$profile_target" ]; then if [ -e "$profile_target" ]; then
shell_source_lines \ {
| _sudo "extend your $profile_target with nix-daemon settings" \ shell_source_lines
tee -a "$profile_target" cat "$profile_target"
} | _sudo "extend your $profile_target with nix-daemon settings" \
tee "$profile_target"
fi fi
done done