Profile Fox
March 1, 2025 ยท View on GitHub
@readwithai - X - Blog - pypi package
Open new tabs in a given Firefox profile from the command line.
Installation
pipx install profile-fox
Usage
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.
Details
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.
Edge cases
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
About me
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.