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/update-files.sh

25 lines
517 B
Bash
Executable file

#!/usr/bin/env bash
# Copies all dotfiles to the repo.
set -eu
cd "$(dirname "${BASH_SOURCE[0]}")"
platform=$(uname | tr '[A-Z]' '[a-z]')
cp -av \
$HOME/.alacritty.yml \
$HOME/.gitconfig \
$HOME/.tmux.conf \
$HOME/.zshrc \
$HOME/.config/htop/htoprc \
files/
if [[ $platform == darwin ]]; then
cp -av $HOME/Library/Application\ Support/amp/config.yml files/amp.yml
else
cp -av $HOME/.config/amp/config.yml files/amp.yml
fi
cp -av $HOME/.zsh_platform files/.zsh_platform_$platform