From 5a6f8e76450c8c6f17f11542b9ba2e18994b910a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 19 Jul 2024 15:08:24 -0300 Subject: Rename firefox-chrome-sync to firefox-profile-config-sync --- firefox-profile-config-sync | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 firefox-profile-config-sync (limited to 'firefox-profile-config-sync') 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 -- cgit v1.2.3