diff options
-rwxr-xr-x | bin/fancy-prompt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/fancy-prompt b/bin/fancy-prompt index 8c1aece..d06403f 100755 --- a/bin/fancy-prompt +++ b/bin/fancy-prompt @@ -69,6 +69,7 @@ my %colornames = ( tozt => 'yellow', xtahua => 'lightmagenta', zaon => 'lightgreen', + unknown_host => 'brown', error => 'red', @@ -89,7 +90,7 @@ my %colornames = ( background => 'darkgrey', reset => 'reset', ); -$colornames{hostname} = $colornames{$hostname}; +$colornames{hostname} = $colornames{$hostname} || $colornames{unknown_host}; $colornames{user} = $colornames{root} if $root; $colornames{path} = $colornames{ropath} unless -w $pwd; $colornames{error} = $colornames{background} unless $err; |