mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-07 02:45:11 +08:00
ignore git folders
This commit is contained in:
parent
4c6d48ec21
commit
e936085dda
@ -86,7 +86,7 @@ function _prepend_tree -d "Add a dependency tree to the Fish path."
|
|||||||
|
|
||||||
# Traverse $path prepending only directories with matches. Excludes completions folder.
|
# Traverse $path prepending only directories with matches. Excludes completions folder.
|
||||||
test -d $path
|
test -d $path
|
||||||
and for dir in (find $path \! -name "completions" -type d)
|
and for dir in (find $path ! -name "completions" ! -path "*.git*" -type d)
|
||||||
# Use head to retrieve at least one match. Skip not found errors
|
# Use head to retrieve at least one match. Skip not found errors
|
||||||
# for directories that do not exist.
|
# for directories that do not exist.
|
||||||
if [ -z (find "$dir" $glob -maxdepth 1 ^/dev/null | head -1) ]
|
if [ -z (find "$dir" $glob -maxdepth 1 ^/dev/null | head -1) ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user