diff options
| -rwxr-xr-x | macos/motd/motd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macos/motd/motd.sh b/macos/motd/motd.sh index c95256b..3099d1f 100755 --- a/macos/motd/motd.sh +++ b/macos/motd/motd.sh @@ -3,7 +3,7 @@ DIM='\033[2m' RESET='\033[0m' VPN=$(mullvad status 2>/dev/null | head -1 || echo "disconnected") -IP=$(curl -s ifconfig.pro) +IP=$(mullvad status | rg -o '(\d{1,3}\.){3}\d{1,3}') printf "\n" printf " ${BOLD}%s${RESET} ${DIM}%s${RESET}\n" "$USER" "$(uname -sr)" |
