feat: add ssh-server-rich profile, allow --yolo on SSH servers#30
Merged
Conversation
The PREFER_RICH guard in resolve_profile() explicitly skipped ssh-server, so `dotfiles --yolo update` over SSH never upgraded to a rich profile. - Add ssh-server-rich profile: extends ssh-server with nvim, visual, terminal, and prompt modules (all 7 modules enabled) - Remove the ssh-server exclusion from PREFER_RICH logic so --yolo auto-upgrades ssh-server → ssh-server-rich when the profile exists Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
ssh-server-richprofile: extendsssh-serverwith nvim, visual, terminal, and prompt modules (all 7 modules enabled)PREFER_RICHlogic inresolve_profile()so--yoloauto-upgradesssh-server→ssh-server-richwhen the profile file existsRoot cause
Running
dotfiles --yolo updateover SSH never upgraded to a rich profile becauseresolve_profile()explicitly skipped thessh-serverprofile from thePREFER_RICHupgrade path. The guard at line 142 (if effective_name != ssh_profile) meant that even with--yolo, SSH sessions were locked to the minimalssh-serverprofile.Changes
profiles/ssh-server-rich.json— new profile: ssh-server + nvim + visual + terminal + promptscripts/dotfiles.py— remove ssh_profile guard from PREFER_RICH logic (3 lines removed, indent adjusted)tests/test_dotfiles_apply.py— add ssh-server-rich to profile list test and module resolution assertionsTest plan
resolve_profilecorrectly resolves ssh-server-rich to all 7 modulesdotfiles apply --profile ssh-server-richsucceedsexec zshshows Powerlevel10k prompt, syntax highlighting worksDOTFILES_PREFER_RICH=1auto-selects ssh-server-rich on SSH connections🤖 Generated with Claude Code