Dotfiles update 2025-12-24 20:46

This commit is contained in:
Aaron D. Lee
2025-12-24 20:46:41 -05:00
parent 971535edee
commit 335f29f6f1
2 changed files with 7 additions and 2 deletions

View File

@@ -164,8 +164,12 @@ show_motd() {
local h_pad=$(((inner - ${#h_left} - ${#h_center} - ${#h_right}) / 2))
local h_spaces=""
for ((i=0; i<h_pad; i++)); do h_spaces+=" "; done
echo "${DF_GREY}${DF_NC} ${DF_BOLD}${DF_LIGHT_BLUE}${h_left}${DF_NC}${h_spaces}${DF_YELLOW}${h_center}${h_spaces}${DF_NC}${DF_BOLD}${h_right}${DF_NC} ${DF_GREY}${DF_NC}"
if [ "$EUID" -ne 0 ];then
echo "${DF_GREY}${DF_NC} ${DF_BOLD}${DF_LIGHT_BLUE}${h_left}${DF_NC}${h_spaces}${DF_YELLOW}${h_center}${h_spaces}${DF_NC}${DF_BOLD}${h_right}${DF_NC} ${DF_GREY}${DF_NC}"
else
echo "${DF_GREY}${DF_NC} ${DF_BOLD}${DF_LIGHT_RED}${h_left}${DF_NC}${h_spaces}${DF_YELLOW}${h_center}${h_spaces}${DF_NC}${DF_BOLD}${h_right}${DF_NC} ${DF_GREY}${DF_NC}"
fi
# Separator
echo "${DF_GREY}${hline}${DF_NC}"