firefox-link/README.md

17 lines
829 B
Markdown
Raw Normal View History

2016-05-23 18:27:22 -04:00
# firefox-link
A sane default firefox profile
## For Mac
2016-05-23 19:20:36 -04:00
```bash
2016-05-23 19:30:56 -04:00
NAME=$RANDOM
git clone https://austenwares.com/gogs/stonewareslord/firefox-link ~"/Library/Application Support/Firefox/Profiles/$NAME"
2016-05-23 21:57:02 -04:00
egrep -q '\[Profile\d+\]' ~"/Library/Application Support/Firefox/profiles.ini"
if (( $? == 0 )); then
printf "\n[Profile$(expr 1 + $(cat ~"/Library/Application Support/Firefox/profiles.ini" | egrep '\[Profile\d+\]' | tail -n1 | sed -e 's/\[Profile//' -e 's/\]//'))]\nName=firefox-link\nIsRelative=1\nPath=Profiles/$NAME">>~"/Library/Application Support/Firefox/profiles.ini"
else
mkdir -p ~"/Library/Application Support/Firefox/"
printf "\n[Profile0]\nName=firefox-link\nIsRelative=1\nPath=Profiles/$NAME">>~"/Library/Application Support/Firefox/profiles.ini"
fi
2016-05-23 19:33:14 -04:00
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
2016-05-23 18:27:22 -04:00
```