From 858993dea89b4341f6470f29d23647de275d24b0 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Tue, 24 Apr 2018 18:23:36 +0200 Subject: Don't print space if USER is empty --- conf.d/60-prompt.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3