Archived
1
0
Fork 0
This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/update.sh

30 lines
649 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
2016-04-21 13:10:38 +02:00
# Copies all dotfiles to the repo.
set -euo pipefail
2016-04-21 13:10:38 +02:00
cd "$(dirname "${BASH_SOURCE[0]}")"
2016-04-21 13:10:38 +02:00
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