configs  Artifact [c3b1ccadfe]

Artifact c3b1ccadfe6396847b4d71dbd73af9e7860758845bd4c236cc089bf191d77943:

  • File config/fish/functions/fish_right_prompt.fish — part of check-in [bed5a23ae3] at 2020-02-19 21:46:19 on branch trunk — Consistent indenting for .fish files (user: js size: 302)
  • File fish/functions/fish_right_prompt.fish — part of check-in [24d2eb82f0] at 2020-02-20 22:07:34 on branch trunk — Remove useless config subdirectory (user: js size: 302)

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