mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-22 23:03:26 +03:00
Fix pwd markers
This commit is contained in:
parent
8db9d18e7e
commit
d41e20959d
@ -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) &&
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user