A script I created to take the hassle out of using Firefox for web development and personal browsing.
- Make a new Firefox profile by running
/Path/To/Firefox.app/Contents/MacOS/firefox -p
. The name can't contain spaces for this script to work. Make more by quitting Firefox and doing that again. - Run that command again and choose your primary profile. Make sure "don't show this again" is checked.
- Copy .icns files named Firefox-{ProfileName}.icns into this folder before running.
- Run with
make-ff-profile.sh ProfileName1 ProfileName2 ...
- You should have Firefox-{ProfileName}.app bundles in /Applications that will launch their respective profiles automatically.
- Changes the process name in:
- The Finder
- Cmd-Tab
- The menubar
- Activity Monitor
top
,ps
, and other UNIX commands
- Create as many profiles as you like; run the default one the normal way, without the profile switcher
- Please don't create a Firefox profile called Bin or bin. You'll clobber the firefox-bin executable and your copy may not work.
- You can change the place where the copies get created by editing the PREFIX= line in
make-ff-profile.sh
- If you have Firefox in a weird location, edit that in on the FF= line.
You can also use link-except.rb
on its own. It "deep-symlinks" from one folder to another, creating subfolders and symlinking only files, so it can then not symlink any files you want it to exclude. Any folder with no excluded files gets symlinked in its entirety. (i.e. link-except.rb
with no exclude_files is a trivial alias for ln -s
.) Usage is:
link-except.rb from_folder to_folder exclude_file [...]
exclude_file paths can be relative to from_folder or absolute.