Skip to content

feat: add ssh-server-rich profile, allow --yolo on SSH servers#30

Merged
alohays merged 2 commits into
mainfrom
feat/ssh-server-rich
Mar 23, 2026
Merged

feat: add ssh-server-rich profile, allow --yolo on SSH servers#30
alohays merged 2 commits into
mainfrom
feat/ssh-server-rich

Conversation

@alohays
Copy link
Copy Markdown
Owner

@alohays alohays commented Mar 23, 2026

Summary

  • 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 in resolve_profile() so --yolo auto-upgrades ssh-serverssh-server-rich when the profile file exists

Root cause

Running dotfiles --yolo update over SSH never upgraded to a rich profile because resolve_profile() explicitly skipped the ssh-server profile from the PREFER_RICH upgrade path. The guard at line 142 (if effective_name != ssh_profile) meant that even with --yolo, SSH sessions were locked to the minimal ssh-server profile.

Changes

  1. profiles/ssh-server-rich.json — new profile: ssh-server + nvim + visual + terminal + prompt
  2. scripts/dotfiles.py — remove ssh_profile guard from PREFER_RICH logic (3 lines removed, indent adjusted)
  3. tests/test_dotfiles_apply.py — add ssh-server-rich to profile list test and module resolution assertions

Test plan

  • resolve_profile correctly resolves ssh-server-rich to all 7 modules
  • dotfiles apply --profile ssh-server-rich succeeds
  • exec zsh shows Powerlevel10k prompt, syntax highlighting works
  • DOTFILES_PREFER_RICH=1 auto-selects ssh-server-rich on SSH connections
  • Existing linux-desktop and macos-desktop profiles unaffected

🤖 Generated with Claude Code

alohays and others added 2 commits March 23, 2026 09:58
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>
@alohays alohays merged commit f5545f3 into main Mar 23, 2026
2 checks passed
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