mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 23:04:22 +00:00
Support systemd-homed
This commit is contained in:
parent
7208fd2409
commit
825a887d08
1 changed files with 1 additions and 4 deletions
|
@ -36,10 +36,7 @@ function fish_prompt
|
||||||
|
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
set -g CURRENT_IP (who am i | awk '{print $5}')
|
if test -z "$SSH_CLIENT"
|
||||||
if test -z "$CURRENT_IP"
|
|
||||||
set_color magenta
|
|
||||||
else if test "$CURRENT_IP" "=" "(:0)"
|
|
||||||
set_color green
|
set_color green
|
||||||
else
|
else
|
||||||
set_color cyan
|
set_color cyan
|
||||||
|
|
Loading…
Reference in a new issue