#!/usr/bin/env bash # Copies all dotfiles to their respective location in the home directory of the # current user. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" MODE=${1:-} RSYNC="rsync --archive --info=name1" $RSYNC latexmkrc $HOME/.latexmkrc $RSYNC zshrc $HOME/.zshrc ITEMS="git nvim tmux" [ "$MODE" != --headless ] \ && ITEMS+=" foot mako mimeapps.list sway swaylock waybar wofi" for i in $ITEMS; do [ -d $i ] && mkdir -p $HOME/.config/$i $RSYNC $i $HOME/.config/ done