devstuff 2.9.0__tar.gz → 2.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. {devstuff-2.9.0 → devstuff-2.10.0}/CHANGELOG.md +6 -0
  2. {devstuff-2.9.0 → devstuff-2.10.0}/PKG-INFO +1 -1
  3. {devstuff-2.9.0 → devstuff-2.10.0}/pyproject.toml +1 -1
  4. devstuff-2.10.0/src/dev_setup/configure/starship/icons.py +166 -0
  5. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/model.py +22 -2
  6. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/render.py +39 -24
  7. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/wizard.py +309 -0
  8. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/ui.py +9 -0
  9. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_starship.py +372 -1
  10. {devstuff-2.9.0 → devstuff-2.10.0}/uv.lock +1 -1
  11. {devstuff-2.9.0 → devstuff-2.10.0}/.claude/skills/run-stuff/SKILL.md +0 -0
  12. {devstuff-2.9.0 → devstuff-2.10.0}/.claude/skills/run-stuff/smoke.sh +0 -0
  13. {devstuff-2.9.0 → devstuff-2.10.0}/.github/codex/review.md +0 -0
  14. {devstuff-2.9.0 → devstuff-2.10.0}/.github/workflows/agent.yml +0 -0
  15. {devstuff-2.9.0 → devstuff-2.10.0}/.github/workflows/bump.yml +0 -0
  16. {devstuff-2.9.0 → devstuff-2.10.0}/.github/workflows/ci.yml +0 -0
  17. {devstuff-2.9.0 → devstuff-2.10.0}/.github/workflows/publish.yml +0 -0
  18. {devstuff-2.9.0 → devstuff-2.10.0}/.github/workflows/test-installs.yml +0 -0
  19. {devstuff-2.9.0 → devstuff-2.10.0}/.gitignore +0 -0
  20. {devstuff-2.9.0 → devstuff-2.10.0}/CLAUDE.md +0 -0
  21. {devstuff-2.9.0 → devstuff-2.10.0}/README.md +0 -0
  22. {devstuff-2.9.0 → devstuff-2.10.0}/dev/Dockerfile +0 -0
  23. {devstuff-2.9.0 → devstuff-2.10.0}/dev/Dockerfile.ci +0 -0
  24. {devstuff-2.9.0 → devstuff-2.10.0}/dev/Makefile +0 -0
  25. {devstuff-2.9.0 → devstuff-2.10.0}/dev/docker-compose.yml +0 -0
  26. {devstuff-2.9.0 → devstuff-2.10.0}/devstuff +0 -0
  27. {devstuff-2.9.0 → devstuff-2.10.0}/docs/github-agent.md +0 -0
  28. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/README.md +0 -0
  29. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/agent/development-plan.md +0 -0
  30. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/agent/specifications.md +0 -0
  31. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/agent/stack-decisions.md +0 -0
  32. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/ansible-config/development-plan.md +0 -0
  33. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/ansible-config/specifications.md +0 -0
  34. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/ansible-config/stack-decisions.md +0 -0
  35. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/bat-config/development-plan.md +0 -0
  36. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/bat-config/specifications.md +0 -0
  37. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/bat-config/stack-decisions.md +0 -0
  38. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/commitizen-config/development-plan.md +0 -0
  39. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/commitizen-config/specifications.md +0 -0
  40. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/commitizen-config/stack-decisions.md +0 -0
  41. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/docker-config/development-plan.md +0 -0
  42. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/docker-config/specifications.md +0 -0
  43. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/docker-config/stack-decisions.md +0 -0
  44. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/lazygit-config/development-plan.md +0 -0
  45. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/lazygit-config/specifications.md +0 -0
  46. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/lazygit-config/stack-decisions.md +0 -0
  47. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/precommit-config/development-plan.md +0 -0
  48. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/precommit-config/specifications.md +0 -0
  49. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/precommit-config/stack-decisions.md +0 -0
  50. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/starship-config/development-plan.md +0 -0
  51. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/starship-config/specifications.md +0 -0
  52. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/starship-config/stack-decisions.md +0 -0
  53. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/uv-backbone/development-plan.md +0 -0
  54. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/uv-backbone/specifications.md +0 -0
  55. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/uv-backbone/stack-decisions.md +0 -0
  56. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/verbose-mode/development-plan.md +0 -0
  57. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/verbose-mode/specifications.md +0 -0
  58. {devstuff-2.9.0 → devstuff-2.10.0}/docs/specs/verbose-mode/stack-decisions.md +0 -0
  59. {devstuff-2.9.0 → devstuff-2.10.0}/install.sh +0 -0
  60. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/__init__.py +0 -0
  61. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/__main__.py +0 -0
  62. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/__init__.py +0 -0
  63. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/approval.py +0 -0
  64. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/bridges.py +0 -0
  65. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/catalog.py +0 -0
  66. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/completion.py +0 -0
  67. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/config.py +0 -0
  68. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/loop.py +0 -0
  69. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/ollama.py +0 -0
  70. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/preflight.py +0 -0
  71. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/primitives.py +0 -0
  72. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/registry.py +0 -0
  73. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/sandbox.py +0 -0
  74. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/session.py +0 -0
  75. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/transcript.py +0 -0
  76. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent/wizard.py +0 -0
  77. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent_tools.schema.json +0 -0
  78. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/agent_tools.yaml +0 -0
  79. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/base.py +0 -0
  80. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/catalog.py +0 -0
  81. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/cli.py +0 -0
  82. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/__init__.py +0 -0
  83. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/add_cmd.py +0 -0
  84. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/agent_cmd.py +0 -0
  85. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/catalog_cmd.py +0 -0
  86. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/configure_cmd.py +0 -0
  87. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/delete_cmd.py +0 -0
  88. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/docs_cmd.py +0 -0
  89. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/doctor_cmd.py +0 -0
  90. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/functions_cmd.py +0 -0
  91. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/help_cmd.py +0 -0
  92. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/install_cmd.py +0 -0
  93. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/links_cmd.py +0 -0
  94. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/list_cmd.py +0 -0
  95. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/remove_cmd.py +0 -0
  96. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/run_cmd.py +0 -0
  97. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/skills_cmd.py +0 -0
  98. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/commands/update_cmd.py +0 -0
  99. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/__init__.py +0 -0
  100. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/__init__.py +0 -0
  101. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/detect.py +0 -0
  102. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/model.py +0 -0
  103. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/render.py +0 -0
  104. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/validate.py +0 -0
  105. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/ansible/wizard.py +0 -0
  106. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/__init__.py +0 -0
  107. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/detect.py +0 -0
  108. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/model.py +0 -0
  109. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/preview.py +0 -0
  110. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/render.py +0 -0
  111. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/bat/wizard.py +0 -0
  112. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/__init__.py +0 -0
  113. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/detect.py +0 -0
  114. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/model.py +0 -0
  115. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/render.py +0 -0
  116. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/validate.py +0 -0
  117. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/commitizen/wizard.py +0 -0
  118. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/__init__.py +0 -0
  119. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/detect.py +0 -0
  120. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/model.py +0 -0
  121. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/render.py +0 -0
  122. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/validate.py +0 -0
  123. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/docker/wizard.py +0 -0
  124. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/__init__.py +0 -0
  125. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/detect.py +0 -0
  126. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/model.py +0 -0
  127. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/render.py +0 -0
  128. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/validate.py +0 -0
  129. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/lazygit/wizard.py +0 -0
  130. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/__init__.py +0 -0
  131. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/detect.py +0 -0
  132. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/model.py +0 -0
  133. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/render.py +0 -0
  134. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/validate.py +0 -0
  135. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/precommit/wizard.py +0 -0
  136. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/reptyr/__init__.py +0 -0
  137. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/reptyr/wizard.py +0 -0
  138. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/__init__.py +0 -0
  139. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/fonts.py +0 -0
  140. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/configure/starship/preview.py +0 -0
  141. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/doctor.py +0 -0
  142. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/function_runner.py +0 -0
  143. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/functions.schema.json +0 -0
  144. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/functions.yaml +0 -0
  145. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/functions_catalog.py +0 -0
  146. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/functions_registry.py +0 -0
  147. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/generic.py +0 -0
  148. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/links.schema.json +0 -0
  149. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/links.yaml +0 -0
  150. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/links_catalog.py +0 -0
  151. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/links_registry.py +0 -0
  152. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/registry.py +0 -0
  153. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/tools.yaml +0 -0
  154. {devstuff-2.9.0 → devstuff-2.10.0}/src/dev_setup/verbose.py +0 -0
  155. {devstuff-2.9.0 → devstuff-2.10.0}/tests/__init__.py +0 -0
  156. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/__init__.py +0 -0
  157. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/conftest.py +0 -0
  158. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/test_agent_smoke.py +0 -0
  159. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/test_agent_tui.py +0 -0
  160. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/test_commitizen_config.py +0 -0
  161. {devstuff-2.9.0 → devstuff-2.10.0}/tests/integration/test_tools.py +0 -0
  162. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent.py +0 -0
  163. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent_completion.py +0 -0
  164. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent_loop.py +0 -0
  165. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent_sandbox.py +0 -0
  166. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent_tools.py +0 -0
  167. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_agent_wizard.py +0 -0
  168. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_catalog.py +0 -0
  169. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_ansible.py +0 -0
  170. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_bat.py +0 -0
  171. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_commitizen.py +0 -0
  172. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_docker.py +0 -0
  173. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_lazygit.py +0 -0
  174. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_precommit.py +0 -0
  175. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_configure_reptyr.py +0 -0
  176. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_doctor.py +0 -0
  177. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_functions.py +0 -0
  178. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_generic.py +0 -0
  179. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_links.py +0 -0
  180. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_registry.py +0 -0
  181. {devstuff-2.9.0 → devstuff-2.10.0}/tests/test_verbose.py +0 -0
@@ -1,3 +1,9 @@
1
+ ## v2.10.0 (2026-10-10)
2
+
3
+ ### Features
4
+
5
+ - **starship**: add per-section color and icon customization
6
+
1
7
  ## v2.9.0 (2026-10-10)
2
8
 
3
9
  ### Features
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devstuff
3
- Version: 2.9.0
3
+ Version: 2.10.0
4
4
  Summary: Development environment setup CLI for Linux
5
5
  Project-URL: Repository, https://github.com/thesawdawg/dev-setup-py
6
6
  Author-email: Sawyer <sawyerksu@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devstuff"
3
- version = "2.9.0"
3
+ version = "2.10.0"
4
4
  description = "Development environment setup CLI for Linux"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -0,0 +1,166 @@
1
+ """A curated catalog of Nerd Font glyphs and emoji for the icon picker.
2
+
3
+ Every entry has a stable ``key``, a human-readable ``label`` (what the filterable
4
+ picker searches against), the ``glyph`` string that gets emitted into the config,
5
+ and one or more ``categories`` so the picker can group them. Glyphs are written as
6
+ escapes with their Nerd Font names so the source stays reviewable without the font
7
+ installed — the same convention as ``model.py``'s section icons.
8
+
9
+ The catalog is deliberately not exhaustive: it covers the domains the wizard's
10
+ sections live in (languages, cloud, git, shell, general) with a handful of
11
+ alternatives each, plus a set of generic shapes that work for anything. A user
12
+ who wants a glyph not listed here can type one into the picker's free-text input.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ from dataclasses import dataclass
18
+
19
+
20
+ @dataclass(frozen=True)
21
+ class Icon:
22
+ key: str
23
+ label: str
24
+ glyph: str
25
+ categories: tuple[str, ...] = ()
26
+
27
+
28
+ # Category constants — keep in sync with the wizard's grouping.
29
+ CAT_LANG = "Languages"
30
+ CAT_CLOUD = "Cloud & Infrastructure"
31
+ CAT_GIT = "Git"
32
+ CAT_SHELL = "Shell"
33
+ CAT_GENERAL = "General"
34
+
35
+
36
+ ICONS: tuple[Icon, ...] = (
37
+ # -- General -----------------------------------------------------------------
38
+ Icon("folder", "Folder", "\uf07b ", (CAT_GENERAL,)), # nf-fa-folder
39
+ Icon("folder_open", "Open folder", "\uf07c ", (CAT_GENERAL,)), # nf-fa-folder_open
40
+ Icon("package", "Package", "\U000f03d7 ", (CAT_GENERAL,)), # nf-md-package_variant_closed
41
+ Icon("package_box", "Package box", "\uf1b6 ", (CAT_GENERAL,)), # nf-fa-inbox
42
+ Icon("container", "Container", "\U000f021b ", (CAT_GENERAL,)), # nf-md-container
43
+ Icon("cube", "Cube", "\uf1b2 ", (CAT_GENERAL,)), # nf-fa-cube
44
+ Icon("gear", "Gear", "\uf013 ", (CAT_GENERAL,)), # nf-fa-cog
45
+ Icon("wrench", "Wrench", "\uf0ad ", (CAT_GENERAL,)), # nf-fa-wrench
46
+ Icon("rocket", "Rocket", "\uf135 ", (CAT_GENERAL,)), # nf-fa-rocket
47
+ Icon("star", "Star", "\uf005 ", (CAT_GENERAL,)), # nf-fa-star
48
+ Icon("heart", "Heart", "\uf004 ", (CAT_GENERAL,)), # nf-fa-heart
49
+ Icon("check", "Check mark", "\uf00c ", (CAT_GENERAL,)), # nf-fa-check
50
+ Icon("x", "X mark", "\uf00d ", (CAT_GENERAL,)), # nf-fa-times
51
+ Icon("lightbulb", "Light bulb", "\uf0eb ", (CAT_GENERAL,)), # nf-fa-lightbulb_o
52
+ Icon("fire", "Fire", "\uf06d ", (CAT_GENERAL,)), # nf-fa-fire
53
+ Icon("bolt", "Lightning bolt", "\uf0e7 ", (CAT_GENERAL,)), # nf-fa-bolt
54
+ Icon("terminal", "Terminal", "\uf120 ", (CAT_GENERAL,)), # nf-fa-terminal
55
+ Icon("keyboard", "Keyboard", "\uf11c ", (CAT_GENERAL,)), # nf-fa-keyboard_o
56
+ Icon("clock", "Clock", "\uf017 ", (CAT_GENERAL,)), # nf-fa-clock_o
57
+ Icon("hourglass", "Hourglass", "\uf252 ", (CAT_GENERAL,)), # nf-fa-hourglass_half
58
+ Icon("chart", "Bar chart", "\uf080 ", (CAT_GENERAL,)), # nf-fa-bar_chart
59
+ Icon("database", "Database", "\uf1c0 ", (CAT_GENERAL,)), # nf-fa-database
60
+ Icon("server", "Server", "\uf233 ", (CAT_GENERAL,)), # nf-fa-server
61
+ Icon("globe", "Globe", "\uf0ac ", (CAT_GENERAL,)), # nf-fa-globe
62
+ Icon("link", "Link", "\uf0c1 ", (CAT_GENERAL,)), # nf-fa-link
63
+
64
+ # -- Git ---------------------------------------------------------------------
65
+ Icon("git_branch", "Git branch", "\ue0a0 ", (CAT_GIT,)), # nf-pl-branch
66
+ Icon("git_branch_alt", "Git branch (alt)", "\uf126 ", (CAT_GIT,)), # nf-fa-code_fork
67
+ Icon("git_commit", "Git commit", "\ue0a1 ", (CAT_GIT,)), # nf-pl-narrow
68
+ Icon("git_merge", "Git merge", "\ue0a3 ", (CAT_GIT,)), # nf-pl-branch
69
+ Icon("git_pull", "Git pull request", "\uf09b ", (CAT_GIT,)), # nf-fa-github_alt
70
+ Icon("fork", "Fork", "\uf126 ", (CAT_GIT,)), # nf-fa-code_fork
71
+ Icon("diff", "Diff", "\ue728 ", (CAT_GIT,)), # nf-seti-git
72
+
73
+ # -- Languages ---------------------------------------------------------------
74
+ Icon("nodejs_small", "Node.js small", "\ue718 ", (CAT_LANG,)), # nf-dev-nodejs_small
75
+ Icon("nodejs", "Node.js", "\ue74e ", (CAT_LANG,)), # nf-dev-nodejs_large
76
+ Icon("js", "JavaScript", "\ue74e ", (CAT_LANG,)),
77
+ Icon("js_square", "JavaScript (square)", "\ue781 ", (CAT_LANG,)), # nf-dev-javascript
78
+ Icon("typescript", "TypeScript", "\ue628 ", (CAT_LANG,)), # nf-seti-file_type_ts
79
+ Icon("deno", "Deno", "\ue70c ", (CAT_LANG,)), # nf-seti-file_type_deno
80
+ Icon("deno_robot", "Deno (robot)", "\U000f06a9 ", (CAT_LANG,)), # nf-md-robot
81
+ Icon("bun", "Bun (croissant)", "\U000f07f0 ", (CAT_LANG,)), # nf-md-food_croissant
82
+ Icon("python", "Python", "\ue73c ", (CAT_LANG,)), # nf-dev-python
83
+ Icon("python_alt", "Python (alt)", "\ue235 ", (CAT_LANG,)), # nf-fa-python
84
+ Icon("rust", "Rust", "\ue7a8 ", (CAT_LANG,)), # nf-dev-rust
85
+ Icon("rust_crab", "Rust (crab)", "\U000f0f80 ", (CAT_LANG,)), # nf-md-crab
86
+ Icon("go", "Go", "\ue627 ", (CAT_LANG,)), # nf-seti-go
87
+ Icon("go_gopher", "Go (gopher)", "\ue626 ", (CAT_LANG,)), # nf-seti-go
88
+ Icon("java", "Java", "\ue256 ", (CAT_LANG,)), # nf-dev-java
89
+ Icon("java_cup", "Java (cup)", "\uf266 ", (CAT_LANG,)), # nf-fa-java
90
+ Icon("php", "PHP", "\ue73d ", (CAT_LANG,)), # nf-dev-php
91
+ Icon("php_elephant", "PHP (elephant)", "\ue608 ", (CAT_LANG,)), # nf-seti-php
92
+ Icon("ruby", "Ruby", "\ue791 ", (CAT_LANG,)), # nf-dev-ruby
93
+ Icon("ruby_gem", "Ruby (gem)", "\uf219 ", (CAT_LANG,)), # nf-fa-ruby
94
+ Icon("elixir", "Elixir (droplet)", "\U000f078b ", (CAT_LANG,)), # nf-md-droplet
95
+ Icon("elixir_alt", "Elixir", "\ue62d ", (CAT_LANG,)), # nf-seti-elixir
96
+ Icon("dotnet", ".NET", "\U000f071e ", (CAT_LANG,)), # nf-md-microsoft_dot_net
97
+ Icon("csharp", "C#", "\U000f031b ", (CAT_LANG,)), # nf-md-language_csharp
98
+ Icon("cpp", "C++", "\U000f061b ", (CAT_LANG,)), # nf-md-language_cpp
99
+ Icon("c", "C", "\U000f061c ", (CAT_LANG,)), # nf-md-language_c
100
+ Icon("swift", "Swift", "\ue755 ", (CAT_LANG,)), # nf-dev-swift
101
+ Icon("kotlin", "Kotlin", "\ue634 ", (CAT_LANG,)), # nf-seti-file_type_kotlin
102
+ Icon("scala", "Scala", "\ue737 ", (CAT_LANG,)), # nf-dev-scala
103
+ Icon("haskell", "Haskell", "\ue77f ", (CAT_LANG,)), # nf-dev-haskell
104
+ Icon("lua", "Lua", "\ue620 ", (CAT_LANG,)), # nf-seti-file_type_lua
105
+ Icon("perl", "Perl", "\ue769 ", (CAT_LANG,)), # nf-dev-perl
106
+ Icon("clojure", "Clojure", "\ue76a ", (CAT_LANG,)), # nf-dev-clojure
107
+ Icon("zig", "Zig", "\U000f071f ", (CAT_LANG,)), # nf-md-language_zig
108
+
109
+ # -- Cloud & Infrastructure --------------------------------------------------
110
+ Icon("docker", "Docker", "\U000f0868 ", (CAT_CLOUD,)), # nf-md-docker
111
+ Icon("docker_whale", "Docker (whale)", "\uf308 ", (CAT_CLOUD,)), # nf-fa-docker
112
+ Icon("kubernetes", "Kubernetes", "\U000f10fe ", (CAT_CLOUD,)), # nf-md-kubernetes
113
+ Icon("kubernetes_alt", "Kubernetes (alt)", "\ue0b6 ", (CAT_CLOUD,)),
114
+ Icon("aws", "AWS", "\ue7ad ", (CAT_CLOUD,)), # nf-dev-aws
115
+ Icon("aws_alt", "AWS (alt)", "\uf270 ", (CAT_CLOUD,)), # nf-fa-aws
116
+ Icon("gcp", "Google Cloud", "\ue7b3 ", (CAT_CLOUD,)), # nf-dev-google_cloud_platform
117
+ Icon("gcp_cloud", "Google Cloud (cloud)", "\uf0c2 ", (CAT_CLOUD,)), # nf-fa-cloud
118
+ Icon("azure", "Azure", "\U000f0825 ", (CAT_CLOUD,)), # nf-md-microsoft_azure
119
+ Icon("terraform", "Terraform", "\U000f1062 ", (CAT_CLOUD,)), # nf-md-terraform
120
+ Icon("terraform_alt", "Terraform (alt)", "\ue0a3 ", (CAT_CLOUD,)),
121
+ Icon("nix", "Nix", "\U000f1105 ", (CAT_CLOUD,)), # nf-md-nix
122
+ Icon("ansible", "Ansible", "\uf195 ", (CAT_CLOUD,)), # nf-fa-building
123
+ Icon("helm", "Helm", "\uf298 ", (CAT_CLOUD,)), # nf-fa-ship
124
+ Icon("cloud", "Cloud", "\uf0c2 ", (CAT_CLOUD,)), # nf-fa-cloud
125
+ Icon("server_alt", "Server (alt)", "\U000f051b ", (CAT_CLOUD,)), # nf-md-server
126
+ Icon("shield", "Shield", "\uf132 ", (CAT_CLOUD,)), # nf-fa-shield
127
+
128
+ # -- Shell -------------------------------------------------------------------
129
+ Icon("prompt_arrow", "Prompt arrow", "\u276f ", (CAT_SHELL,)), # ❯ — standard Unicode, not Nerd Font
130
+ Icon("prompt_dollar", "Dollar sign", "$ ", (CAT_SHELL,)),
131
+ Icon("prompt_lambda", "Lambda", "\u03bb ", (CAT_SHELL,)), # λ — standard Unicode
132
+ Icon("prompt_star", "Star prompt", "\uf005 ", (CAT_SHELL,)), # nf-fa-star
133
+ Icon("prompt_bang", "Bang", "! ", (CAT_SHELL,)),
134
+ Icon("jobs", "Background jobs (sparkle)", "\uf005 ", (CAT_SHELL,)), # nf-fa-star
135
+ Icon("jobs_alt", "Background jobs (gear)", "\uf013 ", (CAT_SHELL,)), # nf-fa-cog
136
+ Icon("error_x", "Error (X)", "\uf00d ", (CAT_SHELL,)), # nf-fa-times
137
+ Icon("error_x_circle", "Error (X in circle)", "\uf057 ", (CAT_SHELL,)), # nf-fa-times_circle
138
+ Icon("error_bang", "Error (warning)", "\uf071 ", (CAT_SHELL,)), # nf-fa-warning
139
+ Icon("error_skull", "Error (skull)", "\U000f05dc ", (CAT_SHELL,)), # nf-md-skull
140
+ Icon("shell_depth", "Shell depth (arrows)", "\uf0aa ", (CAT_SHELL,)), # nf-fa-angle_double_up
141
+ Icon("clock_alt", "Clock (alarm)", "\uf017 ", (CAT_SHELL,)),
142
+ Icon("user", "User", "\uf007 ", (CAT_SHELL,)), # nf-fa-user
143
+ Icon("host", "Host / server", "\uf233 ", (CAT_SHELL,)), # nf-fa-server
144
+ )
145
+
146
+ ICONS_BY_KEY: dict[str, Icon] = {i.key: i for i in ICONS}
147
+ ICON_CATEGORIES: tuple[str, ...] = (CAT_GENERAL, CAT_GIT, CAT_LANG, CAT_CLOUD, CAT_SHELL)
148
+
149
+
150
+ def icons_by_category() -> dict[str, list[Icon]]:
151
+ """Group icons by category, preserving declaration order within each group."""
152
+ grouped: dict[str, list[Icon]] = {cat: [] for cat in ICON_CATEGORIES}
153
+ for icon in ICONS:
154
+ for cat in icon.categories:
155
+ if cat in grouped:
156
+ grouped[cat].append(icon)
157
+ return grouped
158
+
159
+
160
+ def find_icon_by_glyph(glyph: str) -> Icon | None:
161
+ """The icon whose glyph matches, or None. Used to mark the current choice in
162
+ the picker — a section's default icon is a raw glyph, not a catalog key."""
163
+ for icon in ICONS:
164
+ if icon.glyph == glyph:
165
+ return icon
166
+ return None
@@ -788,6 +788,13 @@ class StarshipConfig:
788
788
  # Off gives starship's own "no runtime versions" look: the language sections still
789
789
  # say *which* toolchain a project uses, without the number nobody reads.
790
790
  show_versions: bool = True
791
+ # Per-section overrides chosen in the wizard's "Customize" steps. A colour
792
+ # override is a literal starship colour (hex or ANSI name) that replaces the
793
+ # section's palette role; an icon override is a glyph/text string that replaces
794
+ # the section's default symbol. Both are keyed by section key and empty dicts
795
+ # mean "use the palette/section defaults" — the common path.
796
+ color_overrides: dict[str, str] = field(default_factory=dict)
797
+ icon_overrides: dict[str, str] = field(default_factory=dict)
791
798
 
792
799
  # -- resolved views the emitter and previews share ----------------------
793
800
 
@@ -818,14 +825,27 @@ class StarshipConfig:
818
825
  return left, right
819
826
 
820
827
  def symbol(self, section: Section) -> str:
821
- """The glyph for this section under the current preset."""
822
- symbol = section.icon if self.preset_spec.nerd_font else section.plain
828
+ """The glyph for this section under the current preset, honouring any
829
+ per-section icon override from the wizard's "Customize icons" step."""
830
+ if section.key in self.icon_overrides:
831
+ symbol = self.icon_overrides[section.key]
832
+ else:
833
+ symbol = section.icon if self.preset_spec.nerd_font else section.plain
823
834
  if section.takes_version and not self.show_versions:
824
835
  # Every versioned body is `$symbol$version`, so with the version gone the
825
836
  # symbol's trailing space would sit at the end of the segment.
826
837
  symbol = symbol.rstrip()
827
838
  return symbol
828
839
 
840
+ def section_color(self, section: Section) -> str:
841
+ """The colour this section renders in — a per-section override if one was
842
+ set in the wizard, otherwise the section's palette role name (which
843
+ starship resolves against the emitted ``[palettes.<name>]`` table). Both
844
+ forms are valid in a starship style string, so the emitter and the offline
845
+ preview can use this uniformly."""
846
+ override = self.color_overrides.get(section.key)
847
+ return override if override is not None else section.role
848
+
829
849
  def body(self, section: Section) -> str:
830
850
  """The module's format body under the current preset — what goes inside
831
851
  `[…]($style)`. The emitter and the offline preview both derive from this, so
@@ -48,15 +48,19 @@ def _val(value: Any) -> str:
48
48
  return _multiline_lit(text) if "\n" in text else _lit(text)
49
49
 
50
50
 
51
- def _runs(sections: list[Section]) -> list[list[Section]]:
52
- """Group *consecutive* sections that share a palette role.
51
+ def _runs(sections: list[Section], *, color_of=None) -> list[list[Section]]:
52
+ """Group *consecutive* sections that share a resolved colour.
53
53
 
54
54
  Powerline draws one bar per run, so two adjacent language segments share a
55
- background instead of getting an arrow between two identical colours.
55
+ background instead of getting an arrow between two identical colours. Grouping
56
+ by the *resolved* colour (override or role) means a per-section colour override
57
+ correctly splits a run that would otherwise share a bar — and two adjacent
58
+ sections overridden to the same colour still merge.
56
59
  """
57
60
  runs: list[list[Section]] = []
58
61
  for section in sections:
59
- if runs and runs[-1][0].role == section.role:
62
+ color = color_of(section) if color_of else section.role
63
+ if runs and (color_of(runs[-1][0]) if color_of else runs[-1][0].role) == color:
60
64
  runs[-1].append(section)
61
65
  else:
62
66
  runs.append([section])
@@ -64,9 +68,10 @@ def _runs(sections: list[Section]) -> list[list[Section]]:
64
68
 
65
69
 
66
70
  def _module_style(cfg: StarshipConfig, section: Section) -> str:
71
+ color = cfg.section_color(section)
67
72
  if cfg.preset_spec.powerline:
68
- return f"fg:bar_text bg:{section.role}"
69
- return f"fg:{section.role}"
73
+ return f"fg:bar_text bg:{color}"
74
+ return f"fg:{color}"
70
75
 
71
76
 
72
77
  def _module_format(cfg: StarshipConfig, section: Section, *, right: bool) -> str:
@@ -86,14 +91,14 @@ def _left_format(cfg: StarshipConfig, left: list[Section]) -> list[str]:
86
91
  pieces: list[str] = []
87
92
  pl = cfg.preset_spec.powerline
88
93
  if pl and left:
89
- runs = _runs(left)
90
- pieces.append(f"[{pl.cap_left}](fg:{runs[0][0].role})")
94
+ runs = _runs(left, color_of=cfg.section_color)
95
+ pieces.append(f"[{pl.cap_left}](fg:{cfg.section_color(runs[0][0])})")
91
96
  for i, run in enumerate(runs):
92
97
  if i:
93
- prev = runs[i - 1][0].role
94
- pieces.append(f"[{pl.sep}](fg:{prev} bg:{run[0].role})")
98
+ prev = cfg.section_color(runs[i - 1][0])
99
+ pieces.append(f"[{pl.sep}](fg:{prev} bg:{cfg.section_color(run[0])})")
95
100
  pieces.extend(s.ref for s in run)
96
- pieces.append(f"[{pl.sep}](fg:{runs[-1][0].role})")
101
+ pieces.append(f"[{pl.sep}](fg:{cfg.section_color(runs[-1][0])})")
97
102
  else:
98
103
  pieces.extend(s.ref for s in left)
99
104
 
@@ -110,14 +115,14 @@ def _right_format(cfg: StarshipConfig, right: list[Section]) -> str:
110
115
  if not pl:
111
116
  return "".join(s.ref for s in right)
112
117
 
113
- runs = _runs(right)
114
- parts = [f"[{pl.sep_left}](fg:{runs[0][0].role})"]
118
+ runs = _runs(right, color_of=cfg.section_color)
119
+ parts = [f"[{pl.sep_left}](fg:{cfg.section_color(runs[0][0])})"]
115
120
  for i, run in enumerate(runs):
116
121
  if i:
117
- prev = runs[i - 1][0].role
118
- parts.append(f"[{pl.sep_left}](fg:{run[0].role} bg:{prev})")
122
+ prev = cfg.section_color(runs[i - 1][0])
123
+ parts.append(f"[{pl.sep_left}](fg:{cfg.section_color(run[0])} bg:{prev})")
119
124
  parts.extend(s.ref for s in run)
120
- parts.append(f"[{pl.cap_right}](fg:{runs[-1][0].role})")
125
+ parts.append(f"[{pl.cap_right}](fg:{cfg.section_color(runs[-1][0])})")
121
126
  return "".join(parts)
122
127
 
123
128
 
@@ -197,11 +202,21 @@ def to_toml(cfg: StarshipConfig) -> str:
197
202
 
198
203
 
199
204
  def _rich_color(color: str) -> str:
200
- """Palette colour → Rich colour. Hex passes through; ANSI names differ only in
201
- the separator (`bright-black` vs Rich's `bright_black`)."""
205
+ """A palette colour (hex or ANSI name) → Rich colour. Hex passes through; ANSI
206
+ names differ only in the separator (`bright-black` vs Rich's `bright_black`)."""
202
207
  return color if color.startswith("#") else color.replace("-", "_")
203
208
 
204
209
 
210
+ def _resolve_for_rich(cfg: StarshipConfig, section: Section) -> str:
211
+ """The Rich colour string for this section. A role name (returned by
212
+ ``section_color`` when there is no override) is resolved through the palette;
213
+ a literal override (hex or ANSI name) is passed through ``_rich_color``."""
214
+ color = cfg.section_color(section)
215
+ if color in cfg.palette_spec.colors:
216
+ color = cfg.color(color)
217
+ return _rich_color(color)
218
+
219
+
205
220
  def _sample_parts(cfg: StarshipConfig, sections: list[Section]) -> list[tuple[str, str]]:
206
221
  """(markup, plain text) for each rendered chunk, so the caller can measure width."""
207
222
  parts: list[tuple[str, str]] = []
@@ -211,23 +226,23 @@ def _sample_parts(cfg: StarshipConfig, sections: list[Section]) -> list[tuple[st
211
226
  pl = cfg.preset_spec.powerline
212
227
  if pl:
213
228
  text = _rich_color(cfg.color("bar_text"))
214
- runs = _runs(sections)
215
- first = _rich_color(cfg.color(runs[0][0].role))
229
+ runs = _runs(sections, color_of=cfg.section_color)
230
+ first = _resolve_for_rich(cfg, runs[0][0])
216
231
  parts.append((f"[{first}]{pl.cap_left}[/]", pl.cap_left))
217
232
  for i, run in enumerate(runs):
218
- bg = _rich_color(cfg.color(run[0].role))
233
+ bg = _resolve_for_rich(cfg, run[0])
219
234
  if i:
220
- prev = _rich_color(cfg.color(runs[i - 1][0].role))
235
+ prev = _resolve_for_rich(cfg, runs[i - 1][0])
221
236
  parts.append((f"[{prev} on {bg}]{pl.sep}[/]", pl.sep))
222
237
  for section in run:
223
238
  body = cfg.sample_text(section)
224
239
  parts.append((f"[{text} on {bg}] {escape(body)} [/]", f" {body} "))
225
- last = _rich_color(cfg.color(runs[-1][0].role))
240
+ last = _resolve_for_rich(cfg, runs[-1][0])
226
241
  parts.append((f"[{last}]{pl.sep}[/]", pl.sep))
227
242
  return parts
228
243
 
229
244
  for i, section in enumerate(sections):
230
- color = _rich_color(cfg.color(section.role))
245
+ color = _resolve_for_rich(cfg, section)
231
246
  body = cfg.sample_text(section)
232
247
  prefix = "" if i == 0 else " "
233
248
  parts.append((f"{prefix}[{color}]{escape(body)}[/]", f"{prefix}{body}"))