loading plugins completions

This commit is contained in:
Bruno Pinto 2012-07-26 23:13:48 -03:00
parent ccd8e1a6df
commit 3485cbec67

View File

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