chore: Update setup.sh
This commit is contained in:
parent
45ca8d534f
commit
7884a29617
32 changed files with 296 additions and 151 deletions
|
|
@ -26,7 +26,8 @@ eval "function _tide_pwd
|
|||
set split_output[\$i] \"$color_anchors\$dir_section$reset_to_color_dirs\"
|
||||
else if test \$_tide_pwd_len -gt \$dist_btwn_sides
|
||||
set -l trunc
|
||||
while string match -qr \"(?<trunc>\$trunc.)\" \$dir_section && v=\$parent_dir/\$trunc*/ set -q v[2]
|
||||
string match -qr \"(?<trunc>\..|.)\" \$dir_section
|
||||
while v=\$parent_dir/\$trunc*/ set -q v[2] && string match -qr \"(?<trunc>\$trunc.)\" \$dir_section
|
||||
end
|
||||
test -n \"\$trunc\" && set split_output[\$i] \"$color_truncated\$trunc$reset_to_color_dirs\" &&
|
||||
string join / \$split_output | string length -V | read _tide_pwd_len
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue