Fix pwd markers

This commit is contained in:
Ilan Cosman 2021-03-06 11:58:49 -08:00
parent 8db9d18e7e
commit d41e20959d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ function _tide_item_pwd
set i (math $i + 1) # This keeps us from using seq
# Returns true if any markers exist in splitPwd[$i], or if anchorDirs contains i
if test -z false (string split -m 2 " " -- "-o -e "$parentDir/$tide_pwd_markers) || contains $i $anchorDirs
if test -z false (string split -m 2 " " -- "-o -e "$parentDir/$splitPwd[$i]/$tide_pwd_markers) || contains $i $anchorDirs
set splitPwdForOutput[$i] $colorAnchors$splitPwd[$i]$keepBackgroundColor$colorDirs
else if test (string join -- '/' $splitPwdForLength | string length) -gt $pwdMaxLength
while set -l truncationLength (math $truncationLength + 1) &&

View File

@ -47,6 +47,6 @@ rm -r ~/alfa/bratwurst
# Markers
mkdir -p ~/alfa/.git
_pwd "$longDir" # CHECK: ~/a/bravo/c/d/e/f/g/h/india/juliett/kilo/lima/mike/november/oscar/papa
_pwd "$longDir" # CHECK: ~/alfa/b/c/d/e/f/g/h/india/juliett/kilo/lima/mike/november/oscar/papa
rm -r ~/alfa