Repository navigation
feat(identity): prefix generated nicks by platform - #540
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a platform-derived prefix to autogenerated/default identity nicks so that otherwise-identical scope-derived names are easier to distinguish across machines/OSes, while preserving explicit user-configured names.
Changes:
- Updated default nick derivation to emit
<platform>-<basename>-<4-char-hash>(withmac/win/3-letter distro IDs). - Extended the scope integration scenario to assert the new prefix behavior and to compare
AIRC_HOMEoverrides using canonicalized paths. - Updated README identity examples to reflect the new default nick format.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
airc |
Adds platform_nick_prefix() and prepends it to derive_name() output; adjusts basename cap to account for the new prefix. |
test/integration.sh |
Updates scope scenario expectations for canonical AIRC_HOME paths and validates the new ubu- prefix behavior under AIRC_PLATFORM_KIND. |
README.md |
Refreshes identity/nick documentation and examples to match the new derived format. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
mac-,win-,ubu-, etc.)AIRC_NAME, saved config names, and userairc nickoverrides unchangedwinfor Windows/Git Bash and WSL-on-Windows,macfor macOS, and the first three letters of Linux distro ID otherwiseValidation
bash -n airc test/integration.sh./test/integration.sh scopeAIRC_PLATFORM_KIND=mac|windows|ubuntu airc debug-name, plusAIRC_NAME=custom airc debug-name