configs  fish_right_prompt.fish at [9686d84236]

File fish/functions/fish_right_prompt.fish artifact c3b1ccadfe part of check-in 9686d84236


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