Separate color for the host name

This commit is contained in:
Emmanuel BENOîT 2022-10-19 21:53:12 +02:00
parent 522b19992a
commit 8a1d92dae1

View file

@ -158,6 +158,8 @@ sub default_theme
# User@host - Root - Foreground and background colors
'uh_root_fg' => 9 ,
'uh_root_bg' => -1 ,
# User@host - Hostname and remote host color
'uh_host_fg' => 10 ,
# Date/time - Colors
'dt_time_fg' => -1 ,
@ -820,6 +822,7 @@ sub render_userhost
push @out , ( getpwuid( $< ) || '(?)' );
}
if ( $hn == 1 || ( $hn == 2 && $is_remote ) ) {
push @out , { fg => themed 'uh_host_fg' };
push @out , '@' if @out;
push @out , hostname;
}