From 5902e1a49d64d7813228ed216c8b57c47eca82df Mon Sep 17 00:00:00 2001 From: Florian Meinicke Date: Sun, 27 Oct 2019 19:28:55 +0100 Subject: [PATCH] Don't start a new segment if either `display_user' or `display_sudo_user' is set --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 309f3c7..0a8f379 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -679,7 +679,7 @@ function __bobthefish_prompt_user -S -d 'Display current user and hostname' end if set -q display_hostname - if set -q display_user + if set -q display_user; or set -q display_sudo_user # reset colors without starting a new segment... # (so we can have a bold username and non-bold hostname) set_color normal