Claude Code · SettingsStatusline
programmer-tamagotchi-statusline
Mascota virtual que evoluciona con tu actividad.
por davila7/claude-code-templates
statusline
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --setting statusline/programmer-tamagotchi-statuslineContenido
Dónde va: .claude/settings.json
{
"statusLine": {
"type": "command",
"command": "bash -c 'input=$(cat); MODEL=$(echo \"$input\" | jq -r \".model.display_name\"); DIR=$(echo \"$input\" | jq -r \".workspace.current_dir\"); SESSION=$(echo \"$input\" | jq -r \".session_id\" | cut -c1-8); CACHE=\"/tmp/tamagochi_$SESSION\"; if [ ! -f \"$CACHE\" ]; then echo \"100 50 0\" > \"$CACHE\"; fi; read HEALTH HAPPINESS COMMITS < \"$CACHE\"; COMMITS=$((COMMITS + 1)); if [ $((COMMITS % 10)) -eq 0 ]; then HAPPINESS=$((HAPPINESS + 5)); fi; if [ $((COMMITS % 20)) -eq 0 ]; then HEALTH=$((HEALTH - 10)); fi; HEALTH=$((HEALTH > 100 ? 100 : HEALTH)); HAPPINESS=$((HAPPINESS > 100 ? 100 : HAPPINESS)); echo \"$HEALTH $HAPPINESS $COMMITS\" > \"$CACHE\"; if [ $HEALTH -gt 80 ]; then PET=\"🐱\"; elif [ $HEALTH -gt 60 ]; then PET=\"😺\"; elif [ $HEALTH -gt 40 ]; then PET=\"😿\"; else PET=\"💀\"; fi; if [ $HAPPINESS -gt 80 ]; then MOOD=\"✨\"; elif [ $HAPPINESS -gt 60 ]; then MOOD=\"😊\"; elif [ $HAPPINESS -gt 40 ]; then MOOD=\"😐\"; else MOOD=\"😢\"; fi; echo \"[$MODEL] $PET$MOOD HP:$HEALTH Joy:$HAPPINESS | 📁 ${DIR##*/} | Commits:$COMMITS\"'"
}
}
Más en Settings
Modo solo lectura
Permite leer y buscar, pero pide confirmación antes de editar o ejecutar comandos.
Proteger secretos
Bloquea la lectura de .env, llaves y credenciales locales.
Proyecto Node.js
Permite npm run, tests y git status sin preguntar; bloquea publicar paquetes.
Variables para CI
Desactiva telemetría y auto-actualizaciones para correr en pipelines.
Statusline con rama de git
Muestra el modelo, la carpeta y la rama actual en la barra de estado.
Historial corto
Borra transcripciones locales después de 7 días.