configs  fish_right_prompt.fish at 24d2eb82f0b4e25d7bd29f47b75470c518528c55c4483325ec2dd97f4236b50c

File fish/functions/fish_right_prompt.fish artifact c3b1ccadfe part of check-in 24d2eb82f0b4e25d7bd29f47b75470c518528c55c4483325ec2dd97f4236b50c


function fish_right_prompt
    set -l code $status
    set -l jobs (jobs | wc -l)
    set -l prompt

    test $jobs -gt 0
    and set -a prompt (set_color $fish_color_jobs)$jobs

    test $code -gt 0
    and set -a prompt (set_color $fish_color_status)$code

    echo $prompt

    set_color normal
end