24 lines
506 B
Bash
Executable file
24 lines
506 B
Bash
Executable file
#!/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]}")"
|
|
|
|
MODE=${1:-}
|
|
RSYNC="rsync --archive --info=name1"
|
|
|
|
$RSYNC gitconfig $HOME/.gitconfig
|
|
$RSYNC latexmkrc $HOME/.latexmkrc
|
|
$RSYNC zshrc $HOME/.zshrc
|
|
|
|
DIRS="nvim tmux"
|
|
|
|
[ "$MODE" != --headless ] && DIRS+=" alacritty sway swaylock waybar waybar mako wofi"
|
|
|
|
for d in $DIRS; do
|
|
mkdir -p $HOME/.config/$d
|
|
$RSYNC $d $HOME/.config/
|
|
done
|