From 42652a9ed0ec59b9efe01b8da4726292553a1ff6 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Thu, 25 Dec 2025 13:08:35 -0500 Subject: [PATCH] Dotfiles update 2025-12-25 13:08 --- zsh/functions/motd.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/functions/motd.zsh b/zsh/functions/motd.zsh index 72ed7f9..6bc2b2f 100644 --- a/zsh/functions/motd.zsh +++ b/zsh/functions/motd.zsh @@ -103,6 +103,7 @@ show_motd() { local width="${DF_WIDTH:-66}" local hostname="${HOST:-$(hostname -s 2>/dev/null)}" + local username=$(whoami) local datetime=$(date '+%a %b %d %H:%M') local uptime=$(_motd_uptime) local load=$(_motd_load) @@ -114,7 +115,7 @@ show_motd() { echo "" echo "${DF_GREY}╒${hline}╕${DF_NC}" - local h_left="✦ ${hostname}" + local h_left="✦ ${username}@${hostname} " local h_center=$(hostname -i 2>/dev/null | awk -F" " '{print $1}') local h_right="${datetime}" local h_pad=$(((inner - ${#h_left} - ${#h_center} - ${#h_right}) / 2))