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/deploy.sh

24 lines
500 B
Bash
Raw Normal View History

#!/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+=" foot mako mimeapps.list sway swaylock waybar wofi"
for i in $ITEMS; do
[ -d $i ] && mkdir -p $HOME/.config/$i
$RSYNC $i $HOME/.config/
done