diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-19 15:08:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-19 15:08:24 -0300 |
commit | 5a6f8e76450c8c6f17f11542b9ba2e18994b910a (patch) | |
tree | b2cb6dd1b4c5d1ca7d0cf9abd24ac3c27c4bf1c9 /firefox-profile-config-sync | |
parent | 423d05452d65fbb0025a9ee8ce1b1c5c472eaa66 (diff) | |
download | firefoxer-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-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 |