⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
Separate DA name from color - clean separation of concerns
Daniel Miesslerf95a0f7628d5
diff --git a/.claude/statusline-command.sh b/.claude/statusline-command.shindex 2e4b50e1..5d083e69 100755--- a/.claude/statusline-command.sh+++ b/.claude/statusline-command.sh@@ -3,9 +3,9 @@# Read JSON input from stdininput=$(cat)-# Get Digital Assistant name from environment-# Default to "Assistant" if not set - configure via export DA="YourName" in .zshrc-DA_NAME="${DA:-Assistant}"+# Get Digital Assistant configuration from environment+DA_NAME="${DA:-Assistant}" # Assistant name+DA_COLOR="${DA_COLOR:-purple}" # Color for the assistant name# Extract data from JSON inputcurrent_dir=$(echo "$input" | jq -r '.workspace.current_dir')@@ -140,12 +140,27 @@ BRIGHT_GREEN='\033[38;2;158;206;106m'DARK_GREEN='\033[38;2;130;170;90m'BRIGHT_ORANGE='\033[38;2;255;158;100m'BRIGHT_RED='\033[38;2;247;118;142m'+BRIGHT_CYAN='\033[38;2;125;207;255m'+BRIGHT_MAGENTA='\033[38;2;187;154;247m'+BRIGHT_YELLOW='\033[38;2;224;175;104m'++# Map DA_COLOR to actual ANSI color code+case "$DA_COLOR" in+ "purple") DA_DISPLAY_COLOR='\033[38;2;147;112;219m' ;;+ "blue") DA_DISPLAY_COLOR="$BRIGHT_BLUE" ;;+ "green") DA_DISPLAY_COLOR="$BRIGHT_GREEN" ;;+ "cyan") DA_DISPLAY_COLOR="$BRIGHT_CYAN" ;;+ "magenta") DA_DISPLAY_COLOR="$BRIGHT_MAGENTA" ;;+ "yellow") DA_DISPLAY_COLOR="$BRIGHT_YELLOW" ;;+ "red") DA_DISPLAY_COLOR="$BRIGHT_RED" ;;+ "orange") DA_DISPLAY_COLOR="$BRIGHT_ORANGE" ;;+ *) DA_DISPLAY_COLOR='\033[38;2;147;112;219m' ;; # Default to purple+esac# Line-specific colorsLINE1_PRIMARY="$BRIGHT_PURPLE"LINE1_ACCENT='\033[38;2;160;130;210m'MODEL_PURPLE='\033[38;2;138;99;210m'-DA_PURPLE='\033[38;2;147;112;219m' # Digital Assistant name colorLINE2_PRIMARY="$DARK_BLUE"LINE2_ACCENT='\033[38;2;110;150;210m'@@ -191,7 +206,7 @@ done# Output the full 3-line statusline# LINE 1 - PURPLE theme with all counts-printf "${DA_PURPLE}${DA_NAME}${RESET}${LINE1_PRIMARY} here, running on ${MODEL_PURPLE}🧠 ${model_name}${RESET}${LINE1_PRIMARY} in ${DIR_COLOR}📁 ${dir_name}${RESET}${LINE1_PRIMARY}, wielding: ${RESET}${LINE1_PRIMARY}🔧 ${fobs_count} Services${RESET}${LINE1_PRIMARY}, ${RESET}${LINE1_PRIMARY}⚙️ ${commands_count} Commands${RESET}${LINE1_PRIMARY}, ${RESET}${LINE1_PRIMARY}🔌 ${mcps_count} MCPs${RESET}${LINE1_PRIMARY}, and ${RESET}${LINE1_PRIMARY}📚 ${fabric_count} Patterns${RESET}\n"+printf "${DA_DISPLAY_COLOR}${DA_NAME}${RESET}${LINE1_PRIMARY} here, running on ${MODEL_PURPLE}🧠 ${model_name}${RESET}${LINE1_PRIMARY} in ${DIR_COLOR}📁 ${dir_name}${RESET}${LINE1_PRIMARY}, wielding: ${RESET}${LINE1_PRIMARY}🔧 ${fobs_count} Services${RESET}${LINE1_PRIMARY}, ${RESET}${LINE1_PRIMARY}⚙️ ${commands_count} Commands${RESET}${LINE1_PRIMARY}, ${RESET}${LINE1_PRIMARY}🔌 ${mcps_count} MCPs${RESET}${LINE1_PRIMARY}, and ${RESET}${LINE1_PRIMARY}📚 ${fabric_count} Patterns${RESET}\n"# LINE 2 - BLUE theme with MCP namesprintf "${LINE2_PRIMARY}🔌 MCPs${RESET}${LINE2_PRIMARY}${SEPARATOR_COLOR}: ${RESET}${mcp_names_formatted}${RESET}\n"diff --git a/README.md b/README.mdindex c2e10296..0ef560d1 100644--- a/README.md+++ b/README.md@@ -40,10 +40,15 @@<details open><summary><strong>📅 September 25, 2025 - DA Environment Variable</strong></summary>-- 🤖 **DA Variable**: Added configurable Digital Assistant name via `DA` environment variable-- 🎨 **Statusline**: Updated statusline to dynamically display assistant name from `$DA` variable-- 🔊 **Session Hook**: Modified session-start-hook to use `$DA` for voice announcements-- ⚙️ **Configuration**: Add `export DA="YourAssistantName"` to `.zshrc` (defaults to "Assistant")+- 🤖 **DA Variable**: Separated Digital Assistant name and color configuration+- 🎨 **DA_COLOR Variable**: Color now configurable via `DA_COLOR` environment variable+- 📝 **Clean Separation**: `DA` handles the name, `DA_COLOR` handles the display color+- 🎨 **Color Options**: purple (default), blue, green, cyan, magenta, yellow, red, orange+- ⚙️ **Configuration**: Add to `.zshrc`:+ ```bash+ export DA="YourAssistantName" # Defaults to "Assistant"+ export DA_COLOR="purple" # Choose your color+ ```</details>