fixup! darwin/core: simplify fish shell $PATH workaround

This commit is contained in:
Guanran Wang 2024-03-13 21:07:49 +08:00
parent 107d7b8ea3
commit 02ff42da62
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -44,7 +44,7 @@
programs.fish.loginShellInit = let programs.fish.loginShellInit = let
# Double quotes instead of single quotes are necessary # Double quotes instead of single quotes are necessary
# ["$HOME/.local" "/usr/local"] -> "\"$HOME/.local/bin' '/usr/local/bin\"" # ["$HOME/.local" "/usr/local"] -> "\"$HOME/.local/bin' '/usr/local/bin\""
makePath = path: lib.concatMapStringsSep " " (path: "\"${path}/bin\"") path; makePath = path: lib.concatMapStringsSep " " (path: "\"${path}/bin\"") path;
in '' in ''
fish_add_path --move --prepend --path ${makePath config.environment.profiles} fish_add_path --move --prepend --path ${makePath config.environment.profiles}
set fish_user_paths $fish_user_paths set fish_user_paths $fish_user_paths