{"id":19113444,"url":"https://github.com/fielding/zsh-brew-switcher","last_synced_at":"2025-06-27T03:36:44.664Z","repository":{"id":198570153,"uuid":"701072013","full_name":"fielding/zsh-brew-switcher","owner":"fielding","description":"zsh plugin allowing you to switch brew installations depending on the arch specified","archived":false,"fork":false,"pushed_at":"2023-10-06T01:37:18.000Z","size":90,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T06:12:49.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fielding.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-05T21:21:09.000Z","updated_at":"2025-05-31T10:38:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc298995-26a7-436e-b86b-3bf13c971684","html_url":"https://github.com/fielding/zsh-brew-switcher","commit_stats":null,"previous_names":["fielding/zsh-brew-switcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fielding/zsh-brew-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fzsh-brew-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fzsh-brew-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fzsh-brew-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fzsh-brew-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fielding","download_url":"https://codeload.github.com/fielding/zsh-brew-switcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fielding%2Fzsh-brew-switcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262182764,"owners_count":23271682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T04:36:20.170Z","updated_at":"2025-06-27T03:36:44.636Z","avatar_url":"https://github.com/fielding.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"zsh-brew-switcher\n=================\nAutomatically switch between Homebrew installations based on the current active arch, arm64 or x86_64, on Apple Silicon Macs.\n\n![homer-example-chat](https://github.com/fielding/zsh-brew-switcher/blob/readme/img/screenshot.png?raw=true)\n\n## 📦 Installation\nInstall with your zsh plugin manager of choice.\n\n### with [zplug](https://github.com/zplug/zplug)\n```\nzplug fielding/zsh-brew-switcher, from:github, at:main\n```\n\n## 🚀 Usage\nSimply run a zsh shell with a specified architecture the plugin will automatically switch to the correct brew installation for you based on the arch, `$(arch)`, specified.\n\n## Extra\nI planned to make a plugin to enable viewing the arch when it was x86_64 in a spaceship prompt, but somebody took care of it already. I recommend using these together, [spaceship-arch](https://github.com/windwhinny/spaceship-arch) \n## 🍺 Homebrew Paths\nOn ARM64, Homebrew is installed to `/opt/homebrew` and the executable path is `/opt/homebrew/bin/brew`.\n\nOn X86_64, Homebrew is installed to `/usr/local/Homebrew` and the executable path is `/usr/local/bin/brew`.\n\nThe plugin handles running `brew shellenv` from the correct brew executable automatically based on the specified architecture.\n\n## 🤝 Contributing\nPull requests are welcome! Feel free to open an issue for bugs or feature requests.\n\n### Inspiration\nThis plugin was inspired by https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit! \nThanks :heart:\n\n## ⚖️ License\n[MIT](https://fielding.mit-license.org/) (c) [@fielding](https://github.com/fielding)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fzsh-brew-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffielding%2Fzsh-brew-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffielding%2Fzsh-brew-switcher/lists"}