Skip to content

docs(channel): pre-check before suggesting claude-w2a alias#4

Merged
daibor merged 1 commit intomainfrom
docs/sensor-add-alias-precheck
Apr 27, 2026
Merged

docs(channel): pre-check before suggesting claude-w2a alias#4
daibor merged 1 commit intomainfrom
docs/sensor-add-alias-precheck

Conversation

@daibor
Copy link
Copy Markdown
Collaborator

@daibor daibor commented Apr 27, 2026

Summary

  • Gate the claude-w2a alias suggestion on a pre-check so users who already configured it don't get re-prompted on every sensor install
  • Uses grep -l across common rc files (~/.zshrc, ~/.bashrc, ~/.zprofile, ~/.bash_profile)

Test plan

  • On a setup with the alias already in ~/.zshrc, run /world2agent:sensor-add and confirm the assistant skips the alias suggestion entirely
  • On a fresh setup with no alias, run /world2agent:sensor-add and confirm the assistant still offers the alias one-liner

🤖 Generated with Claude Code

After /world2agent:sensor-add walks the user through restart, the
optional alias suggestion was firing on every install. Add a grep
across common shell rc files (zshrc/bashrc/zprofile/bash_profile)
and have the skill skip the suggestion entirely if the alias is
already configured.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@daibor daibor merged commit 7eab471 into main Apr 27, 2026
1 check passed
@daibor daibor deleted the docs/sensor-add-alias-precheck branch April 27, 2026 12:50
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