dotfiles/setup.sh
2022-09-07 09:02:12 +02:00

11 lines
408 B
Bash

#!/bin/sh -e
alias dots="git --git-dir=$HOME/.dots --work-tree=$HOME"
dots init "$HOME"
dots remote add origin https://codeberg.org/odrling/dotfiles.git
dots fetch origin master
[ -f "$HOME/.profile" ] && mv -vi "$HOME/.profile" "$HOME/.profile.local"
[ -f "$HOME/.zshrc" ] && mv -vi "$HOME/.zshrc" "$HOME/.zshrc.local"
dots checkout -b master --track origin/master
dots submodule update --init --recursive