home-config/fish/functions/tide/configure/functions/_fake_tide_pwd.fish

b7559d2d6b6bc46c482c01cdfc03091d8352944e · 337 B · 11 lines raw

1 function _fake_tide_pwd
2 set -l out (
3 set_color $fake_tide_pwd_color_dirs
4 echo -ns $fake_tide_pwd_icon' ' '~/'
5 set_color -o $fake_tide_pwd_color_anchors
6 echo -ns src
7 set_color normal -b $fake_tide_pwd_bg_color
8 )
9 set -g _tide_pwd_len (string length --visible $out)
10 echo -ns $out
11 end