aboutsummaryrefslogtreecommitdiff
path: root/firefox-profile-sync
blob: 367d9dd611bfa3c93bd627984a13857a35410caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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