fish: link to nix profile issue
This commit is contained in:
parent
071cd3e602
commit
6a1bdec8ef
@ -1,10 +1,12 @@
|
|||||||
# https://github.com/NixOS/nix
|
# Nix package manager
|
||||||
#
|
#
|
||||||
# If nix profile exists:
|
# If Nix is installed:
|
||||||
# - source the profile in bash
|
# - source the profile with bash
|
||||||
# - export the NIX_* variables in fish
|
# - export the NIX_* variables in fish
|
||||||
# - add nix profile to PATH
|
# - add Nix profile to PATH
|
||||||
#
|
#
|
||||||
|
# There is no fish profile to source yet.
|
||||||
|
# https://github.com/NixOS/nix/issues/1512
|
||||||
if test -f ~/.nix-profile/etc/profile.d/nix.sh
|
if test -f ~/.nix-profile/etc/profile.d/nix.sh
|
||||||
for line in (bash -c 'source $0; for name in "${!NIX_@}"; do printf "%s=%s\n" "$name" "${!name}"; done' ~/.nix-profile/etc/profile.d/nix.sh)
|
for line in (bash -c 'source $0; for name in "${!NIX_@}"; do printf "%s=%s\n" "$name" "${!name}"; done' ~/.nix-profile/etc/profile.d/nix.sh)
|
||||||
set -gx (string split -m 1 = $line)
|
set -gx (string split -m 1 = $line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user