mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Resolved formatting error
Fixed prompt segments that were out of place
This commit is contained in:
parent
e14f4b7c05
commit
d710b2b41c
@ -442,14 +442,20 @@ function __bobthefish_prompt_user -S -d 'Display actual user if different from $
|
||||
end
|
||||
|
||||
if [ "$theme_display_hostname" = 'yes' ]
|
||||
__bobthefish_start_segment $__color_hostname
|
||||
set -l IFS .
|
||||
hostname | read -l hostname __
|
||||
if [ "$theme_display_user" = 'yes' ]
|
||||
echo -ns '@' $hostname
|
||||
else
|
||||
__bobthefish_start_segment $__color_hostname
|
||||
echo -ns $hostname
|
||||
end
|
||||
end
|
||||
|
||||
if [ "$theme_display_user" = 'yes' -o "$theme_display_hostname" = 'yes' ]
|
||||
echo -ns ' '
|
||||
end
|
||||
end
|
||||
|
||||
function __bobthefish_prompt_hg -S -a current_dir -d 'Display the actual hg state'
|
||||
set -l dirty (command hg stat; or echo -n '*')
|
||||
|
Loading…
Reference in New Issue
Block a user