mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 18:28:35 -05:00
8c725aa77c
- 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
24 lines
720 B
Bash
Executable File
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}"
|