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
Christoph Heiss dd56eee6e4
scripts: Add mimeapps.list files for xdg-open
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-01-08 22:19:43 +01:00

31 lines
654 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 smtpconfig $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 alacritty waybar mako wofi mimeapps.list; do
$RSYNC $HOME/.config/$i .
done
for d in sway swaylock; do
$RSYNC --exclude background.png $HOME/.config/$d .
done
fi