From 5a61f81191a802b5c444a55187ea1fa57c24cd58 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 30 Sep 2021 23:55:35 +0200 Subject: [PATCH] fix buggerino --- functions/fish_prompt.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 0dcb13f..88ca683 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -43,12 +43,12 @@ function fish_prompt set -g CURRENT_IP (who | grep "$USER" | awk '{print $5}') end - if test "$CURRENT_IP" "=" "(:0)" - set_color green - else if test -n "$SSH_CLIENT" - set_color cyan - else + if test -z "$CURRENT_IP" set_color magenta + else if test "$CURRENT_IP" "=" "(:0)" + set_color green + else + set_color cyan end echo -n (prompt_hostname)