Fish: Difference between revisions
Bitestring (talk | contribs) m The dconf path and the fish command was incorrect. I have corrected the case to make it work. |
→Show that you are in a nix-shell: add note regarding IN_NIX_SHELL variable when using new `nix shell` command |
||
| Line 204: | Line 204: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Note|This won't work with the new {{ic|nix shell}} command, as it doesn't set {{ic|IN_NIX_SHELL}} variable. You can instead check if {{ic|$SHLVL}} is {{ic|> 1}}, or check if {{ic|$PATH}} contains paths from {{ic|/nix/store}} (which get added at the beginning of the {{ic|$PATH}} when you enter nix shell). See https://github.com/NixOS/nix/issues/6677 for more context and workarounds.}} | |||
and <code>$nix_shell_info</code> to the echo in that function, e.g.: | and <code>$nix_shell_info</code> to the echo in that function, e.g.: | ||