1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +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}') set -g CURRENT_IP (who | grep "$USER" | awk '{print $5}')
end end
if test "$CURRENT_IP" "=" "(:0)" if test -z "$CURRENT_IP"
set_color green
else if test -n "$SSH_CLIENT"
set_color cyan
else
set_color magenta set_color magenta
else if test "$CURRENT_IP" "=" "(:0)"
set_color green
else
set_color cyan
end end
echo -n (prompt_hostname) echo -n (prompt_hostname)