home-config/fish/functions/tide/configure/functions/_fake_tide_pwd.fish
dfef019feba47ae49c0e9346e7fb547ed0aee139
· 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 |