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 --- ChangeLog.md | 2 +- README.md | 4 ++-- firefox-profile-config-sync | 20 ++++++++++++++++++++ firefox-profile-sync | 20 -------------------- 4 files changed, 23 insertions(+), 23 deletions(-) create mode 100755 firefox-profile-config-sync delete mode 100755 firefox-profile-sync diff --git a/ChangeLog.md b/ChangeLog.md index 1add3cb..e0776f8 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,5 +4,5 @@ * [x] Create initial version. * [x] Create `firefox-chrome-sync` script. -* [x] Rename `firefox-chrome-sync` to `firefox-profile-sync`. +* [x] Rename `firefox-chrome-sync` to `firefox-profile-config-sync`. * [x] Manage `user.js` configuration. diff --git a/README.md b/README.md index 5950142..1c966a4 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ profiles. ### Syncing -Use the [firefox-profile-sync](firefox-profile-sync) to keep your chrome -customizations synced for every profile. +Use the [firefox-profile-config-sync](firefox-profile-config-sync) to keep your +chrome customizations synced for every profile. ### Symlinking 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 diff --git a/firefox-profile-sync b/firefox-profile-sync deleted file mode 100755 index 367d9dd..0000000 --- a/firefox-profile-sync +++ /dev/null @@ -1,20 +0,0 @@ -#!/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