1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

opam: fix enableFishIntegration (#3597)

Fish shell doesn't require arguments to `eval` to be double quoted
like in a bash shell. At the moment doing so gives us the following
error:

~/.config/fish/config.fish (line 12): $(...) is not supported. In fish, please use '(/nix/store/8asq…)'.
eval "$(/nix/store/8asqgnhs89wzyjvs8p1n5hvxn7lkn9wa-opam-2.1.3/bin/opam env --shell=fish)"
      ^
from sourcing file ~/.config/fish/config.fish
	called during startup
source: Error while reading file “/home/user/.config/fish/config.fish”

This commit fixes the above error.
This commit is contained in:
Bikal Lem 2023-01-15 20:48:02 +00:00 committed by GitHub
parent d633afe0d9
commit 3e42035fc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ in {
'';
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
eval "$(${cfg.package}/bin/opam env --shell=fish)"
eval (${cfg.package}/bin/opam env --shell=fish)
'';
};
}