1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-10-16 14:27:34 +00:00

fix buggerino

This commit is contained in:
Steffo 2021-09-30 23:55:35 +02:00
parent db8f37bdb6
commit 5a61f81191
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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)