aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-06-17 20:48:30 +0200
committerDuncaen <mail@duncano.de>2017-06-17 20:48:30 +0200
commite19bafe2356e8a94a7ae4ed1fb292db764785f95 (patch)
treebe33d7b0b219c7ffbcf9e4ad1605c7edf93a692c /install.sh
parentd571a377b96d4ebaa8000030c004ede1f8a5268e (diff)
downloaddotfiles-e19bafe2356e8a94a7ae4ed1fb292db764785f95.tar.gz
firefox: add
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 4cb6304..c225f28 100755
--- a/install.sh
+++ b/install.sh
@@ -90,6 +90,17 @@ _gtk() {
_ln_home "gtkrc-2.0" ".gtkrc-2.0"
_ln_home "gtk-3.0" ".config/gtk-3.0"
}
+_firefox() {
+ [ -n "$(command -v firefox 2>/dev/null)" ] || return
+ printf "INSTALL: firefox user.js for profile: "
+ for p in ~/.mozilla/firefox/*/; do
+ p="${p%/*}"; p="${p##*/}"
+ case "$p" in *backup*|*crashrecovery*|"") continue ;; esac
+ printf " %s" "'${p}'"
+ _ln_home "user.js" ".mozilla/firefox/$p/user.js"
+ done
+ printf "\n"
+}
: ${PWD:=$(pwd)}
: ${HOME:=~}
@@ -107,3 +118,4 @@ _vim
_void
_ssh
_gtk
+_firefox