Commit 33ec29ec authored by Bruno Pinto's avatar Bruno Pinto

loading custom plugins and sourcing all files that are not plugins

parent 5099c45c
# Set FISH_CUSTOM to the path where your custom config files
# and plugins exists, or else we will use the default custom.
if not set -q FISH_CUSTOM
set -g FISH_CUSTOM $FISH/custom
end
# Extracting user's functions – will be added later.
set user_function_path $fish_function_path[1]
set -e fish_function_path[1]
......@@ -13,5 +19,15 @@ end
# Add user defined theme to fish_function_path.
set fish_function_path /Users/bpinto/.oh-my-fish/themes/$FISH_THEME $fish_function_path
# Add all custom plugins to fish_function_path
for plugin in $FISH_CUSTOM/plugins/*
set fish_function_path $plugin $fish_function_path
end
# Source all files inside custom folder
for config_file in $FISH_CUSTOM/*.fish
. $config_file
end
# Re-adding user's functions so they have the highest priority
set fish_function_path $user_function_path $fish_function_path
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment