Commit 3485cbec authored by Bruno Pinto's avatar Bruno Pinto

loading plugins completions

parent ccd8e1a6
...@@ -8,20 +8,30 @@ end ...@@ -8,20 +8,30 @@ end
set user_function_path $fish_function_path[1] set user_function_path $fish_function_path[1]
set -e fish_function_path[1] set -e fish_function_path[1]
# Add all functions to fish_function_path. # Add all functions
set fish_function_path $FISH/functions/ $fish_function_path set fish_function_path $FISH/functions/ $fish_function_path
# Add all defined plugins to fish_function_path. # Add all defined plugins
for plugin in $FISH_PLUGINS for plugin in $FISH_PLUGINS
set fish_function_path $FISH/plugins/$plugin $fish_function_path set fish_function_path $FISH/plugins/$plugin $fish_function_path
# Add plugin completion
if test -e $FISH/plugins/$plugin/completions
set fish_complete_path $FISH/plugins/$plugin/completions $fish_complete_path
end
end end
# Add user defined theme to fish_function_path. # Add user defined theme
set fish_function_path /Users/bpinto/.oh-my-fish/themes/$FISH_THEME $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 # Add all custom plugins
for plugin in $FISH_CUSTOM/plugins/* for plugin in $FISH_CUSTOM/plugins/*
set fish_function_path $plugin $fish_function_path set fish_function_path $plugin $fish_function_path
# Add plugin completion
if test -e $plugin/completions
set fish_complete_path $plugin/completions $fish_complete_path
end
end end
# Source all files inside custom folder # Source all files inside custom folder
......
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