configs  Check-in [c86690c591]

Overview
Comment:zshrc: Use $USER instead of $(whoami)

This fixes QNX.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: c86690c5919cdcbfc31ec23b7438039a43211055fc883e6013c2c8dd18aee922
User & Date: js on 2024-03-31 20:57:53
Other Links: manifest | tags
Context
2024-03-31
20:57
zshrc: Use $USER instead of $(whoami) Leaf check-in: c86690c591 user: js tags: trunk
2024-03-11
21:53
zshrc: Add back sprunge check-in: 6276aeb66b user: js tags: trunk
Changes

Modified zshrc from [d7b1800aa3] to [87f26698d5].

134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
	fi

	if [ -n "$1" ]; then
	       	local branch="$(color $color_vcs_braces)($(color $color_vcs)$1"
		branch+="$(color $color_vcs_braces))"
	fi

	if [ "$(whoami)" != "$normal_user" ]; then
		local user="%n@"
	fi

	PS1="$(color $color_host)$user%m $(color $color_cwd)%c$branch"
	PS1+="$(color $color_suffix)%(!.#.>)$(nocolor) "
	PS2="%B>%b "
	RPS1="%(1j.$(color $color_jobs)%B%j%b$(nocolor).)%(?..%(1j. .)"







|







134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
	fi

	if [ -n "$1" ]; then
	       	local branch="$(color $color_vcs_braces)($(color $color_vcs)$1"
		branch+="$(color $color_vcs_braces))"
	fi

	if [ "$USER" != "$normal_user" ]; then
		local user="%n@"
	fi

	PS1="$(color $color_host)$user%m $(color $color_cwd)%c$branch"
	PS1+="$(color $color_suffix)%(!.#.>)$(nocolor) "
	PS2="%B>%b "
	RPS1="%(1j.$(color $color_jobs)%B%j%b$(nocolor).)%(?..%(1j. .)"