From 8a1d92dae140ac2c08eaa67ebc124c854b5afdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Wed, 19 Oct 2022 21:53:12 +0200 Subject: [PATCH] Separate color for the host name --- gprompt.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gprompt.pl b/gprompt.pl index aa6244e..c5008ef 100644 --- a/gprompt.pl +++ b/gprompt.pl @@ -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; }