Use realpath for ignored VCS directories.

This commit is contained in:
Justin Hileman 2019-01-13 10:46:50 -08:00
parent 462878a929
commit ed0c2a4cc5

View File

@ -104,9 +104,10 @@ function __bobthefish_pretty_parent -S -a child_dir -d 'Print a parent directory
end
function __bobthefish_ignore_vcs_dir -d 'Check whether the current directory should be ignored as a VCS segment'
set -l real_pwd (realpath $PWD)
for p in $theme_vcs_ignore_paths
set ignore_path (realpath $p 2>/dev/null)
switch $PWD/
switch $real_pwd/
case $ignore_path/\*
echo 1
return