Better faster stronger vcs ignore path matching

pull/126/head
Justin Hileman 6 years ago
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'
for p in $theme_vcs_ignore_paths
set ignore_path (realpath $p ^/dev/null)
string match $ignore_path $PWD >/dev/null
or string match $ignore_path'/*' $PWD >/dev/null
and echo 1
and return
switch $PWD/
case $ignore_path/\*
echo 1
return
end
end
end

Loading…
Cancel
Save