Archived
1
0
Fork 0

all: Add script for deploying dotfiles

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2022-12-27 00:08:06 +01:00
parent 21e578b20b
commit f79f8339e7
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF

18
deploy.sh Executable file
View file

@ -0,0 +1,18 @@
#!/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]}")"
RSYNC="rsync --archive --info=name1"
$RSYNC gitconfig $HOME/.gitconfig
$RSYNC latexmkrc $HOME/.latexmkrc
$RSYNC zshrc $HOME/.zshrc
for d in alacritty tmux nvim sway swaylock waybar waybar mako wofi; do
mkdir -p $HOME/.config/$d
$RSYNC $d $HOME/.config/
done