From 53a1abf0cdabbf3bccdaa91072d5a471e5d89fd6 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Thu, 25 Dec 2025 10:29:48 -0500 Subject: [PATCH] Dotfiles update 2025-12-25 10:29 --- zsh/lib/colors.zsh | 97 ---------------------------------------------- zsh/lib/utils.zsh | 95 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 97 deletions(-) diff --git a/zsh/lib/colors.zsh b/zsh/lib/colors.zsh index aa77300..8919a9e 100644 --- a/zsh/lib/colors.zsh +++ b/zsh/lib/colors.zsh @@ -73,103 +73,6 @@ typeset -g DF_HINT="$DF_DIM" typeset -g DF_ACCENT="$DF_BLUE" typeset -g DF_MUTED="$DF_GREY" -# ============================================================================ -# Common Print Functions -# ============================================================================ - -# Print a step/section header -df_print_step() { - echo -e "${DF_GREEN}==>${DF_NC} $1" -} - -# Print success message -df_print_success() { - echo -e "${DF_GREEN}✓${DF_NC} $1" -} - -# Print error message (to stderr) -df_print_error() { - echo -e "${DF_RED}✗${DF_NC} $1" >&2 -} - -# Print warning message -df_print_warning() { - echo -e "${DF_YELLOW}⚠${DF_NC} $1" -} - -# Print info message -df_print_info() { - echo -e "${DF_CYAN}ℹ${DF_NC} $1" -} - -# Print a section divider -df_print_section() { - echo "" - echo -e "${DF_BLUE}▶${DF_NC} $1" - echo -e "${DF_CYAN}─────────────────────────────────────────────────────────────${DF_NC}" -} - -# ============================================================================ -# MOTD-Style Header/Function Header -# ============================================================================ - -# Prints a standardized header box for scripts -# Usage: df_print_header "script-name" -# Usage: df_print_func_name "func-name" - -df_print_func_name() { - local func_name="${1:-func}" - local datetime=$(date '+%a %b %d %H:%M') - local width=66 - - # Build horizontal line - local hline="" - for ((i=0; i/dev/null || \ source "$HOME/.dotfiles/zsh/lib/colors.zsh" 2>/dev/null +# ============================================================================ +# Common Print Functions +# ============================================================================ + +# Print a step/section header +df_print_step() { + echo -e "${DF_GREEN}==>${DF_NC} $1" +} + +# Print success message +df_print_success() { + echo -e "${DF_GREEN}✓${DF_NC} $1" +} + +# Print error message (to stderr) +df_print_error() { + echo -e "${DF_RED}✗${DF_NC} $1" >&2 +} + +# Print warning message +df_print_warning() { + echo -e "${DF_YELLOW}⚠${DF_NC} $1" +} + +# Print info message +df_print_info() { + echo -e "${DF_CYAN}ℹ${DF_NC} $1" +} + +# Print a section divider +df_print_section() { + echo "" + echo -e "${DF_BLUE}▶${DF_NC} $1" + echo -e "${DF_CYAN}─────────────────────────────────────────────────────────────${DF_NC}" +} + + +# ============================================================================ +# MOTD-Style Header/Function Header +# ============================================================================ + +# Prints a standardized header box for scripts +# Usage: df_print_header "script-name" +# Usage: df_print_func_name "func-name" + +df_print_func_name() { + local func_name="${1:-func}" + local datetime=$(date '+%a %b %d %H:%M') + local width=66 + + # Build horizontal line + local hline="" + for ((i=0; i