1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00

Silence string match

This commit is contained in:
Steffo 2022-02-07 13:53:02 +01:00
parent 8d30d07105
commit dd873f21a6

View file

@ -50,7 +50,7 @@ function fish_prompt
set_color green set_color green
else if test "$CURRENT_IP" "=" "(:0)" else if test "$CURRENT_IP" "=" "(:0)"
set_color brgreen set_color brgreen
else if string match --regex '\(.+\)' "$CURRENT_IP" else if string match --regex --quiet '\(.+\)' "$CURRENT_IP" > /dev/null
set_color cyan set_color cyan
else else
set_color green set_color green