fish: link to nix profile issue

This commit is contained in:
Charles Gould 2020-07-26 17:05:32 -04:00
parent 071cd3e602
commit 6a1bdec8ef

View File

@ -1,10 +1,12 @@
# https://github.com/NixOS/nix
# Nix package manager
#
# If nix profile exists:
# - source the profile in bash
# If Nix is installed:
# - source the profile with bash
# - 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
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)