diff --git a/fish/conf.d/nix.fish b/fish/conf.d/nix.fish index 573a364..aa5ef71 100644 --- a/fish/conf.d/nix.fish +++ b/fish/conf.d/nix.fish @@ -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)