FollieHiyuki-dotfiles/home/firefox/userjs-update.sh
FollieHiyuki 8c725aa77c
Lots of changes. See comment :)
- firefox: add script to automate updating user.js
- Anime4K: update version in install script to 4.0.1
- neovim:
    + remove nnn plugin (telescope's file browser has hidden files now)
    + telescope.nvim: update horizontal layout
    + nvim-cmp: update config for lsp, add more sources
    + indent-blankline: update config to use setup()
    + toggleterm, bufferline: repos moved
    + plugins: update multiple small configurations
2021-10-17 21:48:12 +07:00

24 lines
720 B
Bash
Executable File

#!/bin/sh -e
# Use in conjunction with `firefox-sync` script
# (need to open Firefox at least once to generate a profile)
cur_dir="$PWD"
profile_dir=$(find ~/.var/app/org.mozilla.firefox/.mozilla/firefox/ -type d -name "static-*" | head -n 1)
profile=$(echo "${profile_dir}" | sed 's/^.*static-//g')
~/.local/bin/firefox-sync ${profile}
if [ ! -f "${profile_dir}/updater.sh" ]; then
curl -fLo "${profile_dir}/updater.sh" https://raw.githubusercontent.com/arkenfox/user.js/master/updater.sh
chmod 755 "${profile_dir}/updater.sh"
fi
cd ${profile_dir}
bash ./updater.sh
# To be sure both directories are synced
cp -f ./user.js ../${profile}/user.js
cp -f ./updater.sh ../${profile}/updater.sh
cd "${cur_dir}"