Repository navigation
fix(zsh): improve Rainbow resource segments - #112
Merged
Merged
Conversation
Show CPU percentage instead of 5-minute load, keep RAM in the resource row, and display only root filesystem free space with a five-second cache. Also drop the duplicate gap after the prompt char. Copied byte-for-byte from the Termark-verified Rainbow config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync
p10k-config.zshwith the Termark-verified Rainbow prompt. The resource row now shows CPU usage percentage, RAM and root-filesystem free space, and the extra gap after the prompt char is gone.Scope
p10k-config.zshonly, copied byte-for-byte from the verified config./proc/statCPU percentage (no fork, no background hook, 50/70 thresholds kept).root_disksegment that shows only the root partition's available space, cached for 5 seconds; 90/95 usage levels drive warning colors.Validation
sha256sum p10k-config.zsh=dbf8f7ca0e2757f15947a82819f6194fcb6e9862d11f501ca1c1ccc662b6386b(106711 B), identical to the Termark-verified source; remote blob at the task branch has the same SHA256.zsh -n p10k-config.zshexit 0.git diff --checkexit 0.❯.Ubuntu 24.04 lint and testsandDebian 13 tests.Risks
disk_usagesegment means disk free space now comes from a custom segment; on systems without/usr/bin/dfthe segment stays hidden instead of warning./proc/stat, so non-Linux shells would showcpu —.Rollback
Revert this commit (or restore the previous
p10k-config.zsh); the installer re-downloads the theme from the pinned repository ref.