#!/usr/bin/env bash set -euo pipefail STOW="stow --no-folding -v -t $HOME" cd "$(dirname $0)" git submodule update --init --recursive --depth 1 touch ~/.zshrc.local touch ~/.zshenv.local echo "Stow" $STOW common $STOW zsh $STOW direnv $STOW xbindkeys $STOW emacs $STOW desktop touch $HOME/.zshrc.local source $HOME/.zshenv if which xmonad >/dev/null; then touch ~/.Xresources.local [[ -n ${DISPLAY+x} ]] && xrdb -I$HOME -merge ~/.Xresources xmonad --recompile fi if [[ $# -ge 1 && $1 == "fast" ]]; then shift exit fi fc-cache || true tools=( rg fzf bat most direnv emacs git zoxide rofi # for emacs everywhere xwininfo xclip xbindkeys xvkbd ) for tool in "${tools[@]}"; do if ! type "$tool" &>/dev/null; then echo "Missing: $tool" fi done