12 lines
246 B
Fish
12 lines
246 B
Fish
|
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
|