home-config/fish/functions/_tide_1_line_prompt.fish
ff9e209f8597900a334118c1771f8f9c5568a39b
· 453 B · 19 lines
raw
| 1 | function _tide_1_line_prompt |
| 2 | set -g add_prefix |
| 3 | _tide_side=left for item in $_tide_left_items |
| 4 | _tide_item_$item |
| 5 | end |
| 6 | set_color $prev_bg_color -b normal |
| 7 | echo $tide_left_prompt_suffix |
| 8 | |
| 9 | set -g add_prefix |
| 10 | _tide_side=right for item in $_tide_right_items |
| 11 | _tide_item_$item |
| 12 | end |
| 13 | set_color $prev_bg_color -b normal |
| 14 | echo $tide_right_prompt_suffix |
| 15 | end |
| 16 | |
| 17 | function _tide_item_pwd |
| 18 | _tide_print_item pwd @PWD@ |
| 19 | end |