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
Christoph Heiss 6c30dfc556
setup: remove htoprc from managed files
Since this files changes very often, is per-host and easily customized it
isn't really that sensible to attempt to sync it.
2021-03-11 08:44:02 +01:00

24 lines
485 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 \
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