tide/functions/_tide_count_left_prompt_height.fish
2020-09-11 22:15:25 -07:00

4 lines
234 B
Fish

function _tide_count_left_prompt_height --on-variable tide_left_prompt_items
set -l numberOfNewlines (string match --all 'newline' $tide_left_prompt_items | count)
set -g _tide_left_prompt_height (math 1+$numberOfNewlines)
end