faq: explain how to let HM manage shell profiles

main
Wout Mertens 2 years ago committed by Robert Helgesson
parent 44934a1a91
commit 7c2ae0bdd2
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
  1. 4
      docs/faq.adoc

@ -45,7 +45,9 @@ You could also opt to unistall _all_ of the packages from your profile with `nix
=== Why are the session variables not set?
:foreign-env: https://github.com/oh-my-fish/plugin-foreign-env
Home Manager is only able to set session variables automatically if it manages your Bash, Z shell, or fish shell configuration. If you don't want to let Home Manager manage your shell then you will have to manually source the `~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate way. In Bash and Z shell this can be done by adding
Home Manager is only able to set session variables automatically if it manages your Bash, Z shell, or fish shell configuration. To enable such management you use <<opt-programs.bash.enable>>, <<opt-programs.zsh.enable>>, or <<opt-programs.fish.enable>>.
If you don't want to let Home Manager manage your shell then you will have to manually source the `~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate way. In Bash and Z shell this can be done by adding
[source,bash]
----

Loading…
Cancel
Save