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:
parent
db8f37bdb6
commit
5a61f81191
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue