aboutsummaryrefslogtreecommitdiff
path: root/firefox-profile-config-sync
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-19 15:08:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-19 15:08:24 -0300
commit5a6f8e76450c8c6f17f11542b9ba2e18994b910a (patch)
treeb2cb6dd1b4c5d1ca7d0cf9abd24ac3c27c4bf1c9 /firefox-profile-config-sync
parent423d05452d65fbb0025a9ee8ce1b1c5c472eaa66 (diff)
downloadfirefoxer-5a6f8e76450c8c6f17f11542b9ba2e18994b910a.tar.gz
firefoxer-5a6f8e76450c8c6f17f11542b9ba2e18994b910a.tar.bz2
Rename firefox-chrome-sync to firefox-profile-config-syncmain
Diffstat (limited to 'firefox-profile-config-sync')
-rwxr-xr-xfirefox-profile-config-sync20
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