Skip to content

Commit

Permalink
Merge pull request #12422 from ilya-bobyr/fish-profile-use-set-local
Browse files Browse the repository at this point in the history
nix-profile.fish: set --local NIX_LINK
  • Loading branch information
edolstra authored Feb 5, 2025
2 parents 3e8cd2f + 5030077 commit d2425c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scripts/nix-profile-daemon.fish.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

# Set up the per-user profile.

set NIX_LINK $HOME/.nix-profile
set --local NIX_LINK $HOME/.nix-profile

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

add_path "@localstatedir@/nix/profiles/default/bin"
add_path "$NIX_LINK/bin"
set --erase NIX_LINK

# Cleanup

Expand Down
3 changes: 1 addition & 2 deletions scripts/nix-profile.fish.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end

# Set up the per-user profile.

set NIX_LINK $HOME/.nix-profile
set --local NIX_LINK $HOME/.nix-profile

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

add_path "$NIX_LINK/bin"
set --erase NIX_LINK

# Cleanup

Expand Down

0 comments on commit d2425c5

Please sign in to comment.