summaryrefslogtreecommitdiff
path: root/macos/motd
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-05-14 13:56:04 -0500
committerChristian Cleberg <[email protected]>2026-05-14 13:56:04 -0500
commit70f75e110ea3076dd6429f2d03dfe54e8c25669b (patch)
treeea30b07a6fd70b9491eb9f1007e00c07a7873878 /macos/motd
parenteae1c6583fda121a380d33cd1814a30f5452b75a (diff)
downloaddotfiles-70f75e110ea3076dd6429f2d03dfe54e8c25669b.tar.gz
dotfiles-70f75e110ea3076dd6429f2d03dfe54e8c25669b.tar.bz2
dotfiles-70f75e110ea3076dd6429f2d03dfe54e8c25669b.zip
update macos motd
Diffstat (limited to 'macos/motd')
-rwxr-xr-xmacos/motd/motd.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/macos/motd/motd.sh b/macos/motd/motd.sh
index 1d1ea0c..c95256b 100755
--- a/macos/motd/motd.sh
+++ b/macos/motd/motd.sh
@@ -1 +1,12 @@
-echo "Welcome back, $USER."
+BOLD='\033[1m'
+DIM='\033[2m'
+RESET='\033[0m'
+
+VPN=$(mullvad status 2>/dev/null | head -1 || echo "disconnected")
+IP=$(curl -s ifconfig.pro)
+
+printf "\n"
+printf " ${BOLD}%s${RESET} ${DIM}%s${RESET}\n" "$USER" "$(uname -sr)"
+printf " ${DIM}vpn ${RESET}%s\n" "$VPN"
+printf " ${DIM}ip ${RESET}%s\n" "$IP"
+printf "\n"