Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-29 17:25:35 +00:00
parent 8ff93b29ad
commit 02eeb425ee

View file

@ -258,7 +258,7 @@ print_banner() {
printf " \\033[%sm%s OS \\033[0m %s\\n\\n" "$UPDATES_ZERO_COLOR" "" "macOS $(sw_vers -productVersion) / Build $(sw_vers -buildVersion)"
printf " \\033[%sm%s UUID \\033[0m %s\\n\\n" "$PODMAN_RUNNING_COLOR" "" "$(ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOPlatformUUID/{print $(NF-1)}')"
printf " \\033[%sm%s LAN IP \\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "ﯱ" "$(ifconfig en0 2>/dev/null | grep 'inet ' | cut -d ' ' -f 2)"
printf " \\033[%sm%s Public IP\\033[0m %s\\n\\n" "$UPDATES_SECURITY_COLOR" "" "$(curl -q ifconfig.me)"
printf " \\033[%sm%s Public IP\\033[0m %s\\n\\n" "$UPDATES_SECURITY_COLOR" "" "$(curl -sSL ifconfig.me)"
fi
fi
}