From ca224fcda5e609bab42cbd6e811bca302eed3b1a Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 12 Oct 2022 23:39:04 +0200 Subject: [PATCH] fish: Improve nix-darwin fenv call --- home/programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/programs/fish.nix b/home/programs/fish.nix index 7baa471..0d832ef 100644 --- a/home/programs/fish.nix +++ b/home/programs/fish.nix @@ -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