For MacOS, I use https://sindresorhus.com/velja to open github and jira links in my work browser, and all other links in my personal browser.
The only issue is that I'm using different Firefox profiles, and Velja doesn't support this. (No similar app does). So I had to get a bit tricky. The Velja FAQ makes a suggestion, so here's how I achieved it:
- Make your work profile the default in Firefox.
- Create a new folder in the Applications folder, called FirefoxPersonal.app
- The folder should contain:
./Contents/Info.plist
./Contents/MacOS/firefox-personal
- Right-click, get info on the new app
- Download a new icon from [[https://macosicons.com]] and drag it to the icon shown on the top left of the get info window (not the larger bottom one)
- Copy the Info.plist from the original firefox app folder
- Make the following changes:
** Change
CFBundleExecutable
fromfirefox
tofirefox-personal
** ChangeCFBundleIdentifier
fromorg.mozilla.firefox
toorg.mozilla.firefox-personal
** ChangeCFBundleName
changed fromFirefox
toFirefox-personal
- The contents of
Contents/MacOS/firefox-personal
should be this, where "Personal" is the name of your personal profile:
#!/bin/sh
exec $HOME/Applications/Firefox.app/Contents/MacOS/firefox -P "Personal" --no-remote "$@"
- Run
chmod +x
on the firefox-personal file - Then set up velja as normal - there will be two firefox apps to choose from
These steps are modified from johnste/finicky#90 (comment)
Previous instructions at https://superuser.com/a/1699323 didn't work properly.