Source files /etc/profile.d/*.fish at startup

Fixes #1956
This commit is contained in:
ridiculousfish 2015-03-24 16:46:25 -07:00
parent 01026c137f
commit 20a6b65b25

View file

@ -97,6 +97,10 @@ set -xg PATH $__fish_tmp_path
set -e __fish_tmp_path
functions -e __fish_load_path_helper_paths
# Source any files matching /etc/profile.d/*.fish
for file in /etc/profile.d/*.fish
source $file
end
# Add a handler for when fish_user_path changes, so we can apply the same changes to PATH
# Invoke it immediately to apply the current value of fish_user_path