docs: update session-vars info about fish shell

The docs implied that fish was not really supported, but if fish is
managed by Home Manager, the generated config does use fenv to source
the session-vars file. Update the installation instructions and FAQ to
mention that fish does work, and mention fenv in the README.
This commit is contained in:
Romanos Skiadas 2021-09-04 11:22:58 +03:00 committed by Robert Helgesson
parent bd747c5a53
commit 2952168ed5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 17 additions and 8 deletions

View file

@ -107,9 +107,8 @@ Currently the easiest way to install Home Manager is as follows:
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
```
file in your shell configuration. Unfortunately, in this specific
case we currently only support POSIX.2-like shells such as
[Bash][] or [Z shell][].
file in your shell configuration. This file can be sourced
directly by POSIX.2-like shells such as [Bash][] or [Z shell][].
For example, if you use Bash then add
@ -124,7 +123,9 @@ Currently the easiest way to install Home Manager is as follows:
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
```
to your `~/.profile` file.
to your `~/.profile` file. For fish shell, it is possible to use
[foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) to
source the file.
If instead of using channels you want to run Home Manager from a Git
checkout of the repository then you can use the