1
0
Fork 0

fish: Improve nix-darwin fenv call

This commit is contained in:
Daniel Kempkens 2022-10-12 23:39:04 +02:00
parent caa57a6973
commit ca224fcda5
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -154,7 +154,7 @@
set fish_greeting
if test (uname) = "Darwin"; and test -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE"
set __nifoc_nix_darwin_set_env (cat /run/current-system/etc/bashrc | grep '-set-environment' | cut -d '.' -f 2)
set __nifoc_nix_darwin_set_env (grep '-set-environment' /run/current-system/etc/bashrc | cut -d '.' -f 2)
fenv source "$__nifoc_nix_darwin_set_env"
end