Installation
Install gitswitch on macOS and Linux
gitswitch runs on macOS and Linux. Choose any of the methods below.
Homebrew
brew install aksisonline/tap/gitswitchUpdate with:
brew upgrade gitswitchTip: Homebrew is the recommended method — it handles PATH, updates, and uninstallation cleanly.
curl installer
Works on macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/aksisonline/gitswitch/main/.github/install.sh | bashThe script downloads the appropriate binary for your OS and architecture to /usr/local/bin.
To upgrade later:
gitswitch upgradeGo install
Requires Go 1.21 or later:
go install github.com/aksisonline/gitswitch@latestBuild from source
git clone https://github.com/aksisonline/gitswitch
cd gitswitch
make installVerify
gitswitch versionExpected output:
gitswitch v0.1.11
Already on latest version.If a newer release is available:
gitswitch v0.1.11
New version available: v0.1.12
Run: gitswitch upgradePrerequisites
gitmust be installed and onPATH— gitswitch checks this at startup and exits with an error if not foundgh(GitHub CLI) is optional — required only if you use the--gh-userflag on profiles
Shell integration
After installing the binary, set up the shell prompt and identity nudges:
gitswitch installSee Shell Integration for details.