A zsh plugin to safely switch between multiple GitHub user accounts by coordinating git identity, SSH routing, and GitHub CLI authentication.
zsh-plugin-git-user-switch is a Z shell plugin that enables developers to seamlessly switch between different GitHub identities across repositories. It ensures safe and predictable identity management by coordinating git configuration, SSH routing, and optional GitHub CLI authentication without hidden global changes.
github-work) to rewrite repository remotes, avoiding modifications to the global SSH configuration.Host github.com block in SSH config with timestamped backups.gh authentication to match the selected user when enabled.gus status and gus doctor commands to inspect current configuration and diagnose issues.GUS_USERS associative array as the source of truth for user identities, SSH keys, and host aliases.The plugin prioritizes safe, deterministic, and repository-scoped behavior by default, ensuring no hidden writes to SSH config and making all state easily inspectable. An optional magic mode is available for users who prefer global SSH rewrites with explicit backups.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.