mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Use realpath for ignored VCS directories.
This commit is contained in:
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…
Reference in New Issue
Block a user