mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +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
|
||||
set -g CURRENT_IP (who am i | awk '{print $5}')
|
||||
if test -z "$CURRENT_IP"
|
||||
set_color magenta
|
||||
else if test "$CURRENT_IP" "=" "(:0)"
|
||||
if test -z "$SSH_CLIENT"
|
||||
set_color green
|
||||
else
|
||||
set_color cyan
|
||||
|
|
Loading…
Reference in a new issue