My personal dotfiles, use at own risk!
Inspired by https://drewdevault.com/2019/12/30/dotfiles.html.
I utilise the arguments --work-tree and --git-dir when working in the git directory in the home
directory. This means that normal git commands won't treat the home directory as a git directory,
unless you specify those arguments. I provide an alias gho which should be used when interacting
with dotfiles in the home directory.
sudo apt install curl git
# This makes the next commands look nicer.
alias gho='git --work-tree=$HOME --git-dir=$HOME/.home'
cd ~
gho init
gho remote add origin git@github.com:AussieGuy0/dotfiles.git
gho fetch
gho checkout -f master
./scripts/setup.shI use nix home-manager to manage my system. The above commands should set up nix in the right state. If not, follow the below instructions:
- Install Nix (https://nixos.org/download#nix-install-linux)
- Install Home Manager (https://nix-community.github.io/home-manager/index.html#sec-install-standalone)
- Run
home-manager switch
ghod .file
# or
# gho add -f .fileupdots