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
Christoph Heiss 89a7ed6644
all: Replace alacritty with foot
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-01-20 23:43:54 +01:00

24 lines
500 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+=" 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