nix-tools: overwrite $PATH rather than prepending
I don’t see any reason for these scripts to depend on more environmental state than necessary.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#! @shell@
|
||||
set -e
|
||||
set -o pipefail
|
||||
export PATH=@path@:$PATH
|
||||
export PATH=@path@
|
||||
|
||||
evalNix() {
|
||||
nix-instantiate --eval --strict "${extraEvalFlags[@]}" -E "with import <darwin> {}; $*" 2>/dev/null
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#! @shell@
|
||||
set -e
|
||||
set -o pipefail
|
||||
export PATH=@path@:$PATH
|
||||
|
||||
export PATH=@path@
|
||||
|
||||
showSyntax() {
|
||||
echo "darwin-rebuild [--help] {edit | switch | activate | build | check | changelog}" >&2
|
||||
|
||||
Reference in New Issue
Block a user