configs  Artifact [b9d40de7cb]

Artifact b9d40de7cb70ac8d795ba07ff56bb0b2c5eb8ff49757663ff5b47dea48c20b6c:

  • File config/fish/functions/fish_right_prompt.fish — part of check-in [c4bb3283fb] at 2020-02-15 22:44:12 on branch trunk — Update fish config for 3.1.0 (user: js size: 275)

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