1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

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).
This commit is contained in:
Cole Helbling 2020-02-14 14:25:45 -08:00 committed by Robert Helgesson
parent a08dabf015
commit 89239d554d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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]