configs  Artifact [00b7e44087]

Artifact 00b7e440875f78852bc09f6bdfb3fabf261c6c894a3240658ecd1d6a2bd12d6c:

  • File config/fish/functions/fish_right_prompt.fish — part of check-in [5334b70051] at 2015-02-15 19:27:52 on branch trunk — Add fish config (user: js size: 314)

# vim: se ts=4:

function fish_right_prompt --description 'Write out the right prompt'
	set -l last_status $status

	if [ (count (jobs)) -gt 0 ]
		set_color $fish_color_jobs
		echo -n " "(count (jobs))
	end

	if [ $last_status != 0 ]
		set_color $fish_color_status
		echo -n " $last_status"
	end

	echo -n " "
end