Don't start a new segment if either display_user' or display_sudo_user' is set

This commit is contained in:
Florian Meinicke 2019-10-27 19:28:55 +01:00
parent 108b6a45f6
commit 5902e1a49d

View File

@ -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