#!/usr/bin/env bash # # Sync Firefox chrome config # # Parameters BASEDIR="`dirname $0`" BASE="$HOME/.mozilla/firefox" PROFILES="$BASE/profiles" # Go to the profiles folder mkdir -p $PROFILES cd $PROFILES # Dispatch for profile in *; do echo "Syncing $profile..." rsync -q -av --delete $BASEDIR/profile/chrome/ $profile/chrome/ cp $BASEDIR/profile/user.js $profile/user.js done