all: Add script for deploying dotfiles
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
21e578b20b
commit
f79f8339e7
18
deploy.sh
Executable file
18
deploy.sh
Executable 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
|
Reference in a new issue