30 lines
649 B
Bash
Executable file
30 lines
649 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copies all dotfiles to the repo.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
MODE=${1:-}
|
|
RSYNC="rsync --archive --info=name1"
|
|
|
|
$RSYNC $HOME/.latexmkrc latexmkrc
|
|
$RSYNC $HOME/.zshrc zshrc
|
|
|
|
$RSYNC --exclude localconfig $HOME/.config/git .
|
|
$RSYNC --exclude plugins $HOME/.config/tmux .
|
|
|
|
$RSYNC \
|
|
--exclude autoload --exclude plugged --exclude session \
|
|
$HOME/.config/nvim .
|
|
|
|
if [ "$MODE" != --headless ]; then
|
|
for i in foot mako mimeapps.list waybar wofi; do
|
|
$RSYNC $HOME/.config/$i .
|
|
done
|
|
|
|
for d in sway swaylock; do
|
|
$RSYNC --exclude background.png $HOME/.config/$d .
|
|
done
|
|
fi
|