Update fisher & tide, add VS Code, i3, & sway configs
This commit is contained in:
parent
9a43cae5fa
commit
80f43e8f7e
62 changed files with 453 additions and 616 deletions
|
@ -25,13 +25,9 @@ eval "function _tide_pwd
|
|||
if path is \$parent_dir/\$dir_section/\$tide_pwd_markers
|
||||
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
|
||||
string match -qr \"(?<trunc>\..|.)\" \$dir_section
|
||||
|
||||
set -l glob \$parent_dir/\$trunc*/
|
||||
set -e glob[(contains -i \$parent_dir/\$dir_section/ \$glob)] # This is faster than inverse string match
|
||||
|
||||
while string match -qr \"^\$parent_dir/\$(string escape --style=regex \$trunc)\" \$glob &&
|
||||
string match -qr \"(?<trunc>\$(string escape --style=regex \$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