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

This commit is contained in:
Jorge Bucaran 2015-01-14 02:50:08 +09:00
parent 081f3f5b25
commit 912315ba69

View File

@ -102,6 +102,11 @@ function _prepend_tree -d "Add a dependency tree to the Fish path."
printf "%s\n" $dir
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.
# Note path duplicates are already handled by _prepend_path.
_prepend_path $dir -d fish_function_path