dotfiles/fish/functions/_pure_print_prompt.fish

12 lines
246 B
Fish
Raw Normal View History

function _pure_print_prompt
set --local prompt
for prompt_part in $argv
if test (_pure_string_width $prompt_part) -gt 0
set prompt "$prompt $prompt_part"
end
end
echo (string trim -l $prompt)
end