configs  Check-in [98d3196205]

Overview
Comment:zshrc: Fix a typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 98d3196205f5d49c6386032de53e8207a33b96f6ebf721cf60bc29525c439cbe
User & Date: js on 2020-02-15 15:07:20
Other Links: manifest | tags
Context
2020-02-15
15:23
zshrc: Better way to set colors check-in: 1cacfaf154 user: js tags: trunk
15:07
zshrc: Fix a typo check-in: 98d3196205 user: js tags: trunk
2020-02-14
02:32
zshrc: Match fish prompt check-in: 639c6d7de4 user: js tags: trunk
Changes

Modified zshrc from [b29fbe52f0] to [3c258b2791].

79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
	RPS1="%(1j.$(__color "1;33")%j$(__reset_color).)"
	RPS1+="%(?..%(1j. .)$(__color "1;31")%?$(__reset_color))"
	RPS2="%(1_.$(__color "1;30")(%_%)$(__reset_color).)"
}
set_prompt

__precmd() {
	update_terminal_cwd

	local branch_name=$(git symbolic-ref HEAD 2>/dev/null)
	branch_name=${branch_name##refs/heads/}
	if [ -n "$branch_name" -a "$branch_name" != master ]; then
		local branch="$(__color_256 36)($(__color_256 78)$branch_name"
		branch+="$(__color_256 36))"
	fi







|







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
	RPS1="%(1j.$(__color "1;33")%j$(__reset_color).)"
	RPS1+="%(?..%(1j. .)$(__color "1;31")%?$(__reset_color))"
	RPS2="%(1_.$(__color "1;30")(%_%)$(__reset_color).)"
}
set_prompt

__precmd() {
	__update_terminal_cwd

	local branch_name=$(git symbolic-ref HEAD 2>/dev/null)
	branch_name=${branch_name##refs/heads/}
	if [ -n "$branch_name" -a "$branch_name" != master ]; then
		local branch="$(__color_256 36)($(__color_256 78)$branch_name"
		branch+="$(__color_256 36))"
	fi