diff --git a/README.md b/README.md index 858b193..e38c443 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ A sane default firefox profile ## For Mac ```bash -git clone https://austenwares.com/gogs/stonewareslord/firefox-link ~"/Library/Application Support/Firefox/Profiles/firefox-link" -printf '[Profile1]\nName=firefox-link\nIsRelative=1\nPath=Profiles/firefox-link'>>"~/Library/Application Support/Firefox/profiles.ini" +NAME=$RANDOM +git clone https://austenwares.com/gogs/stonewareslord/firefox-link ~"/Library/Application Support/Firefox/Profiles/$NAME" +printf "\n[Profile$((1+$(cat profiles.ini | ag '\[Profile\d+\]' | tail -n1 | sed -e 's/\[Profile//' -e 's/\]//')))]\nName=firefox-link\nIsRelative=1\nPath=Profiles/$NAME">>"~/Library/Application Support/Firefox/profiles.ini" '/Applications/Firefox.app/Contents/MacOS/firefox -p' ```