mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Better faster stronger vcs ignore path matching
This commit is contained in:
parent
89cda861ba
commit
ab7123e063
@ -96,10 +96,11 @@ end
|
|||||||
function __bobthefish_ignore_vcs_dir -d 'Check whether the current directory should be ignored as a VCS segment'
|
function __bobthefish_ignore_vcs_dir -d 'Check whether the current directory should be ignored as a VCS segment'
|
||||||
for p in $theme_vcs_ignore_paths
|
for p in $theme_vcs_ignore_paths
|
||||||
set ignore_path (realpath $p ^/dev/null)
|
set ignore_path (realpath $p ^/dev/null)
|
||||||
string match $ignore_path $PWD >/dev/null
|
switch $PWD/
|
||||||
or string match $ignore_path'/*' $PWD >/dev/null
|
case $ignore_path/\*
|
||||||
and echo 1
|
echo 1
|
||||||
and return
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user