Skip to content

Commit d2425c5

Browse files
authored
Merge pull request #12422 from ilya-bobyr/fish-profile-use-set-local
nix-profile.fish: set --local NIX_LINK
2 parents 3e8cd2f + 5030077 commit d2425c5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

scripts/nix-profile-daemon.fish.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424

2525
# Set up the per-user profile.
2626

27-
set NIX_LINK $HOME/.nix-profile
27+
set --local NIX_LINK $HOME/.nix-profile
2828

2929
# Set up environment.
3030
# This part should be kept in sync with nixpkgs:nixos/modules/programs/environment.nix
@@ -64,7 +64,6 @@ end
6464

6565
add_path "@localstatedir@/nix/profiles/default/bin"
6666
add_path "$NIX_LINK/bin"
67-
set --erase NIX_LINK
6867

6968
# Cleanup
7069

scripts/nix-profile.fish.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424

2525
# Set up the per-user profile.
2626

27-
set NIX_LINK $HOME/.nix-profile
27+
set --local NIX_LINK $HOME/.nix-profile
2828

2929
# Set up environment.
3030
# This part should be kept in sync with nixpkgs:nixos/modules/programs/environment.nix
@@ -63,7 +63,6 @@ if set --query MANPATH
6363
end
6464

6565
add_path "$NIX_LINK/bin"
66-
set --erase NIX_LINK
6766

6867
# Cleanup
6968

0 commit comments

Comments
 (0)