On my day job I use Chrome as my default browser and at home I roll with Safari. Occasionally I want to get work stuff done at home as well, with my personal laptop. Chrome profile sync works well for bookmarks, plugins and preferences, but opening links from email and chats in Safari while I’m in “work mode” is a bit annoying. Navigation to Chrome preferences to set it as the default, and later to remember to set Safari back seems a bit daft. So I need button for that. And by button I mean a zsh alias.
An hour of search later and nothing. It seems there is no elegant way of doing it via some simple terminal commands.
But it is possible in Objective-C. So I didn’t have an excuse.
Check out the details on github. If you are not feeling like compiling it yourself with XCode then you can try downloading the build I made and let me know whether it works for you.