From cc64df4bf01507616c1f074b010b75de25889c98 Mon Sep 17 00:00:00 2001 From: Luca Filipozzi Date: Mon, 28 Oct 2019 12:30:49 -0700 Subject: [PATCH] missed a path comparison --- fish_prompt.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 9e2b42d..4d2286e 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -113,8 +113,7 @@ 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' - for p in $theme_vcs_ignore_paths - set ignore_path (realpath $p 2>/dev/null) + for ignore_path in $theme_vcs_ignore_paths switch $PWD/ case $ignore_path/\* echo 1