diff --git a/bin/dotfiles-compile.sh b/bin/dotfiles-compile.sh index 9c53b3e..8054404 100755 --- a/bin/dotfiles-compile.sh +++ b/bin/dotfiles-compile.sh @@ -14,6 +14,9 @@ source "$DOTFILES_DIR/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' } +# Source utils (fixed: was DOTFILES_HOME, should be DOTFILES_DIR) +source "$DOTFILES_DIR/zsh/lib/utils.zsh" 2>/dev/null + # ============================================================================ # MOTD-style header # ============================================================================ @@ -26,7 +29,8 @@ print_header() { local hostname="${HOST:-$(hostname -s 2>/dev/null)}" local datetime=$(date '+%a %b %d %H:%M') local width=66 - local hline="" && for ((i=0; i/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null + # Track results TOTAL_CHECKS=0 PASSED_CHECKS=0 diff --git a/bin/dotfiles-stats.sh b/bin/dotfiles-stats.sh index 2c8b79c..a87a130 100755 --- a/bin/dotfiles-stats.sh +++ b/bin/dotfiles-stats.sh @@ -15,6 +15,9 @@ source "$DOTFILES_HOME/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null + # ============================================================================ # MOTD-style header # ============================================================================ @@ -31,7 +34,7 @@ print_header() { echo "" echo -e "${DF_GREY}╒${hline}╕${DF_NC}" - echo -e "${DF_GREY}│${DF_NC} ${DF_BOLD}${DF_LIGHT_BLUE}✦ ${user}@${hostname}${DF_NC} ${DF_DIM}dotfiles-stats! ${DF_NC} ${datetime} ${DF_GREY}│${DF_NC}" + echo -e "${DF_GREY}│${DF_NC} ${DF_BOLD}${DF_LIGHT_BLUE}✦ ${user}@${hostname}${DF_NC} ${DF_DIM}dotfiles-stats!${DF_NC} ${datetime} ${DF_GREY}│${DF_NC}" echo -e "${DF_GREY}╘${hline}╛${DF_NC}" echo "" fi diff --git a/bin/dotfiles-sync.sh b/bin/dotfiles-sync.sh index bed6f36..05ddce9 100755 --- a/bin/dotfiles-sync.sh +++ b/bin/dotfiles-sync.sh @@ -15,6 +15,8 @@ source "$DOTFILES_HOME/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' DF_LIGHT_GREEN=$'\033[38;5;82m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null # Color codes readonly RED='\033[0;31m' diff --git a/bin/dotfiles-update.sh b/bin/dotfiles-update.sh index 158e758..58549db 100755 --- a/bin/dotfiles-update.sh +++ b/bin/dotfiles-update.sh @@ -47,6 +47,9 @@ source "$DOTFILES_DIR/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' DF_LIGHT_GREEN=$'\033[38;5;82m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null + # ============================================================================ # MOTD-style header # ============================================================================ diff --git a/bin/dotfiles-vault.sh b/bin/dotfiles-vault.sh index 3368432..8257f7e 100755 --- a/bin/dotfiles-vault.sh +++ b/bin/dotfiles-vault.sh @@ -17,6 +17,9 @@ source "$DOTFILES_HOME/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null + # ============================================================================ # MOTD-style header # ============================================================================ diff --git a/bin/dotfiles-version.sh b/bin/dotfiles-version.sh index 7a84088..70c4b22 100755 --- a/bin/dotfiles-version.sh +++ b/bin/dotfiles-version.sh @@ -25,6 +25,9 @@ source "$DOTFILES_DIR/zsh/lib/colors.zsh" 2>/dev/null || { DF_BOLD=$'\033[1m' DF_DIM=$'\033[2m' DF_LIGHT_GREEN=$'\033[38;5;82m' } +# Source utils.zsh +source "$DOTFILES_HOME/zsh/lib/utils.zsh" 2>/dev/null + CHECK_ONLY=false for arg in "$@"; do diff --git a/zsh/lib/colors.zsh.zwc b/zsh/lib/colors.zsh.zwc new file mode 100644 index 0000000..9e1450f Binary files /dev/null and b/zsh/lib/colors.zsh.zwc differ diff --git a/zsh/lib/utils.zsh.zwc b/zsh/lib/utils.zsh.zwc new file mode 100644 index 0000000..62ff3e2 Binary files /dev/null and b/zsh/lib/utils.zsh.zwc differ