Skip to content
Snippets Groups Projects
Commit 0e21d6be authored by Jorge Bucaran's avatar Jorge Bucaran
Browse files

Merge pull request #458 from nirvdrum/custom_completions_load_fix

Custom completions load fix
parents c17ff864 a06a58fc
No related merge requests found
# Optionally add completions for your plugin here.
# complete -f -c my_command -a some_arg -d 'Description here'
...@@ -38,6 +38,7 @@ function import -d "Load libraries, plugins, themes, etc." ...@@ -38,6 +38,7 @@ function import -d "Load libraries, plugins, themes, etc."
_prepend_tree $fish_path/$library $skip_spec _prepend_tree $fish_path/$library $skip_spec
_prepend_tree $fish_custom/$library $skip_spec _prepend_tree $fish_custom/$library $skip_spec
_prepend_path $fish_path/$library/completions -d fish_complete_path _prepend_path $fish_path/$library/completions -d fish_complete_path
_prepend_path $fish_custom/$library/completions -d fish_complete_path
# Set path to load files. # Set path to load files.
set -l path $library/(basename $library).load set -l path $library/(basename $library).load
......
...@@ -37,6 +37,11 @@ function describe_import ...@@ -37,6 +37,11 @@ function describe_import
import plugins/git-flow import plugins/git-flow
expect $fish_complete_path --to-contain-all $fish_path/plugins/git-flow/completions expect $fish_complete_path --to-contain-all $fish_path/plugins/git-flow/completions
end end
function it_adds_completion_files_for_custom_plugins_to_completion_path
import plugins/example
expect $fish_complete_path --to-contain-all $fish_custom/plugins/example/completions
end
end end
spec.run $argv spec.run $argv
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