23 lines
506 B
Bash
Executable file
23 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 latexmkrc $HOME/.latexmkrc
|
|
$RSYNC zshrc $HOME/.zshrc
|
|
|
|
ITEMS="git nvim tmux"
|
|
|
|
[ "$MODE" != --headless ] && ITEMS+=" alacritty sway swaylock waybar waybar mako wofi mimeapps.list"
|
|
|
|
for i in $ITEMS; do
|
|
[ -d $i ] && mkdir -p $HOME/.config/$i
|
|
$RSYNC $i $HOME/.config/
|
|
done
|