mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-29 20:13:43 +08:00
Do not add test/spec files to function path in _prepend_tree.
This commit is contained in:
parent
081f3f5b25
commit
912315ba69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user