Skip to content

feat(zsh): adopt the Rainbow prompt - #111

Merged
LucaLin233 merged 1 commit into
mainfrom
forge/feat-p10k-rainbow
Dec 2, 2026
Merged

LucaLin233 merged 1 commit into
mainfrom
forge/feat-p10k-rainbow

Conversation

@LucaLin233

Copy link
Copy Markdown
Owner

Summary

Replace the repository's Powerlevel10k profile with the operator's currently configured Rainbow prompt, copied byte-for-byte.

  • Source: ~/.p10k.zsh on the operator's host, 101705 bytes, sha256 718a998acf485b550fc58d6c639d4b1c29d0fdb18ff45ef6c9e354beeef85244.
  • The same file was already verified interactively in a real PTY and approved.

Scope

  • Only p10k-config.zsh changes (169 insertions, 70 deletions).
  • No installer change: modules/zsh-setup.sh option 1 already downloads p10k-config.zsh from the pinned repository ref and atomically replaces ~/.p10k.zsh; .zshrc sources that file.
  • Removes the stale wizard header, switches to nerdfont-complete, restores powerline separators and frame lines, and adds the reviewed overrides plus load/ram, kubecontext/aws and virtualenv/node_version segments.

Validation

  • zsh -n p10k-config.zsh exit 0 (worktree and committed blob).
  • git diff --check clean.
  • cmp of committed blob against the source file: identical.
  • Publishability scan: no host paths, private endpoints, mail addresses or long credential-like strings; paths use $HOME, the context segment uses %n@%m, and all URLs are upstream Powerlevel10k documentation.
  • No installer run or full test suite locally; CI covers lint and sharded tests.

Risks

  • Prompt appearance changes on freshly provisioned hosts.
  • Full icon rendering needs a Nerd Font in the terminal.
  • Line 1826 keeps an upstream-operator provenance comment that cites design/p10k-rainbow/rainbow.html (sha256 b94aaf3e...0b400), a design file not present in this repository, so public readers cannot resolve it. Left untouched to preserve the verified bytes.

Rollback

Restore p10k-config.zsh to its 483d505dc72fa938d0a5f8e9fcb6c659378213b0 content; the installer re-downloads the repository version on its next run.

Replace the repository's Powerlevel10k profile with the operator's
currently configured Rainbow prompt, copied byte-for-byte.

Source: /root/.p10k.zsh on US-Readydedis, 101705 bytes,
sha256 718a998acf485b550fc58d6c639d4b1c29d0fdb18ff45ef6c9e354beeef85244.
The same file was verified interactively in a real PTY and approved.

The file carries no host-specific values, credentials or private
endpoints: paths use $HOME, the context segment uses %n@%m, and links
are the stock Powerlevel10k documentation URLs. The installer already
fetches this path from the pinned repository ref into ~/.p10k.zsh, so
no installer change is needed.

Validation: zsh -n clean, git diff --check clean, cmp against the source
identical.
@LucaLin233
LucaLin233 merged commit 4ea3c9e into main Dec 2, 2026
16 checks passed
@LucaLin233
LucaLin233 deleted the forge/feat-p10k-rainbow branch December 2, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant