summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2018-04-24 18:23:36 +0200
committerTill Höppner2018-04-24 18:23:36 +0200
commit858993dea89b4341f6470f29d23647de275d24b0 (patch)
tree195db8c57facc3f426ba4f0b30801d5105364ed3
parent2a9789727beffec9704ba50e0257ad257fdd6350 (diff)
downloadzsh-858993dea89b4341f6470f29d23647de275d24b0.tar.gz
zsh-858993dea89b4341f6470f29d23647de275d24b0.tar.xz
zsh-858993dea89b4341f6470f29d23647de275d24b0.zip
Don't print space if USER is empty
-rw-r--r--conf.d/60-prompt.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.d/60-prompt.zsh b/conf.d/60-prompt.zsh
index 0ec758b..4b091f4 100644
--- a/conf.d/60-prompt.zsh
+++ b/conf.d/60-prompt.zsh
@@ -77,7 +77,7 @@ left_prompt() {
local printed_host=
case $USER in
- "$PRIMARY_USER" | "root") ;;
+ "$PRIMARY_USER" | "root" | "") ;;
*) printed_host=1; echo -n "$USER"
esac