Commit 912315ba authored by Jorge Bucaran's avatar Jorge Bucaran

Do not add test/spec files to function path in _prepend_tree.

parent 081f3f5b
...@@ -102,6 +102,11 @@ function _prepend_tree -d "Add a dependency tree to the Fish path." ...@@ -102,6 +102,11 @@ function _prepend_tree -d "Add a dependency tree to the Fish path."
printf "%s\n" $dir printf "%s\n" $dir
end end
# Do not add test/spec files to function path.
if contains -- (basename $dir) "test" "tests" "spec"
continue
end
# Prepend matched directory to the the global fish function path. # Prepend matched directory to the the global fish function path.
# Note path duplicates are already handled by _prepend_path. # Note path duplicates are already handled by _prepend_path.
_prepend_path $dir -d fish_function_path _prepend_path $dir -d 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