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 a76bae98a0
scripts: Add headless mode
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2022-12-28 18:17:36 +01:00

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