mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Don't start a new segment if either display_user' or
display_sudo_user' is set
This commit is contained in:
parent
108b6a45f6
commit
5902e1a49d
@ -679,7 +679,7 @@ function __bobthefish_prompt_user -S -d 'Display current user and hostname'
|
|||||||
end
|
end
|
||||||
|
|
||||||
if set -q display_hostname
|
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...
|
# reset colors without starting a new segment...
|
||||||
# (so we can have a bold username and non-bold hostname)
|
# (so we can have a bold username and non-bold hostname)
|
||||||
set_color normal
|
set_color normal
|
||||||
|
Loading…
Reference in New Issue
Block a user