Skip to content

Instantly share code, notes, and snippets.

@auryn31
Created April 10, 2018 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auryn31/bebe4cfeb8202fafe63da8ce0905768d to your computer and use it in GitHub Desktop.
Save auryn31/bebe4cfeb8202fafe63da8ce0905768d to your computer and use it in GitHub Desktop.
create firefox ini
(echo -e "[General]\nStartWithLastProfile=1\n"; i=0; for folder in $(ls
-td */|grep -v "Pending Pings"|grep -v "Crash Reports"|grep -v
profiles.ini); do name=$(echo $folder|cut -f2 -d"."); echo -e
"[Profile$i]\nName=$name\nIsRelative=1\nPath=$folder\n"; i=$((i+1));
done) > profiles.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment