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 4d58144bfc
git: Rename smtpconfig to localconfig
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-01-23 21:37:35 +01:00

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