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:
commit
dcaf001d52
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue