#!/bin/sh set -ex CONFIG_DIR=${HOME}/config ln -sf ${CONFIG_DIR}/bashrc ${HOME}/.bashrc ln -sfT ${CONFIG_DIR}/vim ${HOME}/.vim ln -sf ${CONFIG_DIR}/vimrc ${HOME}/.vimrc ln -sf ${CONFIG_DIR}/inputrc ${HOME}/.inputrc ln -sf ${CONFIG_DIR}/screenrc ${HOME}/.screenrc mkdir -p ${HOME}/.config/git/template ln -sf ${CONFIG_DIR}/git/gitconfig ${HOME}/.config/git/config ln -sfT ${CONFIG_DIR}/git/hooks ${HOME}/.config/git/template/hooks mkdir -p ${HOME}/.mutt ln -sf ${CONFIG_DIR}/muttrc ${HOME}/.mutt/muttrc ln -sf ${CONFIG_DIR}/ripgreprc ${HOME}/.config/ripgreprc for profile in ${HOME}/.mozilla/firefox/*.default ${HOME}/.mozilla/firefox/*.default-release; do [ ! -d "$profile" ] && continue mkdir -p "$profile/chrome" ln -sf ${CONFIG_DIR}/firefox/user.js "$profile/user.js" ln -sf ${CONFIG_DIR}/firefox/userChrome.css "$profile/chrome/userChrome.css" done