configs  Check-in [efaabe0fb7]

Overview
Comment:fish: Restore color after prompt
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: efaabe0fb7595e17cf5d415864fc14b24e59aee4653c81d667046c3748f5dacd
User & Date: js 2020-01-22 20:44:39
Context
2020-01-22
21:38
fish: Slightly change command and operator color check-in: c22a3e608c user: js tags: trunk
20:44
fish: Restore color after prompt check-in: efaabe0fb7 user: js tags: trunk
00:32
fish: Allow using make instead of bmake for pkgsrc check-in: a5517cfc6f user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to config/fish/functions/fish_prompt.fish.

13
14
15
16
17
18
19
20
21
22
	if test -n "$branch" -a "$branch" != "master"
		set vcs (set_color $fish_color_vcs_braces)"(" \
		    (set_color $fish_color_vcs)"$branch" \
		    (set_color $fish_color_vcs_braces)")"
	end

	echo -n -s (set_color $fish_color_host) (prompt_hostname) ' ' \
	    (set_color $fish_color_cwd) (prompt_pwd) (string join "" $vcs) \
	    (set_color $fish_color_suffix) "$suffix "
end







|
|

13
14
15
16
17
18
19
20
21
22
	if test -n "$branch" -a "$branch" != "master"
		set vcs (set_color $fish_color_vcs_braces)"(" \
		    (set_color $fish_color_vcs)"$branch" \
		    (set_color $fish_color_vcs_braces)")"
	end

	echo -n -s (set_color $fish_color_host) (prompt_hostname) ' ' \
	    (set_color $fish_color_cwd) (prompt_pwd) (string join '' $vcs) \
	    (set_color $fish_color_suffix) $suffix (set_color normal) ' '
end