summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/fish_right_prompt.fish
blob: e9ab4922883ce72882886d9e32b998c838648abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function fish_right_prompt

	# ------------------------------------------------------------------------------
	# Configuration
	# ------------------------------------------------------------------------------

	__sf_util_set_default SPACEFISH_RPROMPT_ORDER ""

	# ------------------------------------------------------------------------------
	# Sections
	# ------------------------------------------------------------------------------

	[ -n "$SPACEFISH_RPROMPT_ORDER" ]; or return

	for i in $SPACEFISH_RPROMPT_ORDER
		eval __sf_section_$i
	end
	set_color normal
end