zshrc: Use $USER instead of $(whoami)
This fixes QNX.
This commit is contained in:
parent
ddc3010a0a
commit
cd407df7d7
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
@ -138,7 +138,7 @@ set_prompt() {
|
||||||
branch+="$(color $color_vcs_braces))"
|
branch+="$(color $color_vcs_braces))"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(whoami)" != "$normal_user" ]; then
|
if [ "$USER" != "$normal_user" ]; then
|
||||||
local user="%n@"
|
local user="%n@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue