aboutsummaryrefslogtreecommitdiff
path: root/firefox-profile-sync
diff options
context:
space:
mode:
Diffstat (limited to 'firefox-profile-sync')
-rwxr-xr-xfirefox-profile-sync19
1 files changed, 19 insertions, 0 deletions
diff --git a/firefox-profile-sync b/firefox-profile-sync
new file mode 100755
index 0000000..3b0196a
--- /dev/null
+++ b/firefox-profile-sync
@@ -0,0 +1,19 @@
+#!/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/chrome/ $profile/chrome/
+done