@readwithai - X - Blog - pypi package
Open new tabs in a given Firefox profile from the command line.
pipx install profile-fox
First create a few profiles.
Then run: profile-fox profile_name www.test.com
This will open www.test.com in a particular profile. Note that if no URL is provided a new window will be created.
This script follows the approach suggested by toc777 on stackoverflow, by modifying Firefox's profiles.ini file to change the default Firefox to use before running Firefox. It ensure that StartWithLastProfile when running. profiles.ini is restored after this script has run.
You may have problems if your profiles.ini file is in a strange place.
You can set the location that profile-fox looks for profiles by running profile-fox --set-profiles
I am @readwithai. I make tools related to reading, research and agency sometimes using Obsidian.
I have a habit of making linux productivity tools. You can read about them here.
You might be interested in:
- curlfire, a tool to use firefox cookies from the command line
- zshnip a command line snippet for zsh.
- Reading by summary of Note taking in Obsidian.