1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +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
else if test "$CURRENT_IP" "=" "(:0)"
set_color brgreen
else if string match --regex '\(.+\)' "$CURRENT_IP"
else if string match --regex --quiet '\(.+\)' "$CURRENT_IP" > /dev/null
set_color cyan
else
set_color green