From 2e6221b88182a9777066df69a96b8dae583ef4f0 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 5 Jun 2016 10:30:20 -0400 Subject: [PATCH] Add windows support --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 6ec0ea7..1eeba16 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ A sane default Firefox profile ## Installation ### Mac +- In a terminal, run + ```bash NAME=$RANDOM if command -v wget 2>&1 >/dev/null; then @@ -31,6 +33,8 @@ fi '/Applications/Firefox.app/Contents/MacOS/firefox' -p ``` ### Linux +- In a terminal, run + ```bash NAME=$RANDOM if command -v wget 2>&1 >/dev/null; then @@ -57,3 +61,24 @@ else firefox-bin -p fi ``` + +### Windows +- In powershell, run + +``` +md $env:APPDATA\Mozilla\Firefox\Profiles +curl -outf "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip" https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.zip +Add-Type -AssemblyName System.IO.Compression.FileSystem +[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip", "$env:APPDATA\Mozilla\Firefox\Profiles\firefox-link") +del "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip" +echo > "$env:APPDATA\Mozilla\Firefox\profiles.ini" +[General] +StartWithLastProfile=1 +[Profile0] +Name=firefox-link +IsRelative=1 +Path=Profiles/firefox-link +Default=1 + +& "C:\Program Files\Mozilla Firefox\firefox.exe" +```