From 89239d554d3d1cdf3c865449c75c3bbdbaaf45f1 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Fri, 14 Feb 2020 14:25:45 -0800 Subject: [PATCH] fish: prepend fenv functions dir Instead of concatenating the `fish_function_path` with the fenv functions path, just prepend it. Functionally the same, but looks cleaner (IMO). --- modules/programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index dd58abcab..8e323f2a0 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -229,7 +229,7 @@ in # if we haven't sourced the general config, do it if not set -q __fish_general_config_sourced - set fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions $fish_function_path + set -p fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions fenv source ${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh > /dev/null set -e fish_function_path[1]