From 8ff93b29adbcda9e19c2c08eed83b1d1c08931c7 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 29 Oct 2022 17:23:10 +0000 Subject: [PATCH] Update dotfiles/.local/motd.sh --- dotfiles/.local/motd.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index 7f7c382f..0895a22a 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -255,10 +255,10 @@ print_banner() { else if [ -d /Applications ] && [ -d /System ]; then printf " \\033[%sm%s %s\\033[0m%s%s\\n" "$banner_distro_color" "$banner_distro_icon" "$banner_distro_name" "$banner_distro_space" "$banner_distro_version" - printf " \\033[%sm%s OS\\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "$BANNER_KERNEL_ICON" "macOS $(sw_vers -productVersion) / Build $(sw_vers -buildVersion)" - printf " \\033[%sm%s UUID\\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "$BANNER_KERNEL_ICON" "$(ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOPlatformUUID/{print $(NF-1)}')" - printf " \\033[%sm%s LAN Address\\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "$BANNER_KERNEL_ICON" "$(ifconfig en0 2>/dev/null | grep 'inet ' | cut -d ' ' -f 2)" - printf " \\033[%sm%s Public Address\\033[0m %s\\n\\n" "$BANNER_KERNEL_COLOR" "$BANNER_KERNEL_ICON" "$(curl ifconfig.me)" + 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)" fi fi }