aboutsummaryrefslogtreecommitdiff
path: root/firefox-profile-sync
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-19 11:59:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-19 11:59:19 -0300
commitaf70bd6d561a2af42ddcdf67c28ede5975c95330 (patch)
tree7a0c91af8611096db76cbebb6cfbbd9e37dfbd78 /firefox-profile-sync
parentc2b8cebc59da24b5e1b419910108b4452745dc13 (diff)
downloadfirefoxer-af70bd6d561a2af42ddcdf67c28ede5975c95330.tar.gz
firefoxer-af70bd6d561a2af42ddcdf67c28ede5975c95330.tar.bz2
Rename firefox-chrome-sync to firefox-profile-sync
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