Use realpath for ignored VCS directories.

pull/189/head
Justin Hileman 5 years ago
parent 462878a929
commit ed0c2a4cc5

@ -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

Loading…
Cancel
Save