Add windows support
This commit is contained in:
parent
f4cf45247c
commit
2e6221b881
25
README.md
25
README.md
@ -8,6 +8,8 @@ A sane default Firefox profile
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Mac
|
### Mac
|
||||||
|
- In a terminal, run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NAME=$RANDOM
|
NAME=$RANDOM
|
||||||
if command -v wget 2>&1 >/dev/null; then
|
if command -v wget 2>&1 >/dev/null; then
|
||||||
@ -31,6 +33,8 @@ fi
|
|||||||
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
|
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
|
||||||
```
|
```
|
||||||
### Linux
|
### Linux
|
||||||
|
- In a terminal, run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NAME=$RANDOM
|
NAME=$RANDOM
|
||||||
if command -v wget 2>&1 >/dev/null; then
|
if command -v wget 2>&1 >/dev/null; then
|
||||||
@ -57,3 +61,24 @@ else
|
|||||||
firefox-bin -p
|
firefox-bin -p
|
||||||
fi
|
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"
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user