diff options
Diffstat (limited to 'firefox-profile-config-sync')
-rwxr-xr-x | firefox-profile-config-sync | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/firefox-profile-config-sync b/firefox-profile-config-sync new file mode 100755 index 0000000..367d9dd --- /dev/null +++ b/firefox-profile-config-sync @@ -0,0 +1,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 |