mirror of
https://github.com/nix-community/home-manager
synced 2024-11-25 22:20:29 +00:00
faq: explain how to let HM manage shell profiles
This commit is contained in:
parent
44934a1a91
commit
7c2ae0bdd2
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue