After considering stow or nix, this is a pure git driven solution to tame my dotfiles.
- git
- curl
- pre-commit
- shfmt
- shellcheck
- gitleaks
Install brew first (follow the instructions from the homebrew website)
Please read the script before executing:
curl -Lks https://raw.githubusercontent.com/anden-dev/dotfilesv2/main/bin/install.sh | /bin/bash
This:
- creates a bare repo in
~/.dot
and track all the files in the~
. - adds all files in
~
to.gitignore
, so that we don't add any private files into git inadvertently (files MUST be added forcefully using-f
flag) - creates a special git alias named
dot
which is specifilly for working with the dotfiles located in~
dot add -f .a-dot-file
dot commit -m "Added .a-dot-file"
dot push origin master
Carefull idiot install (check the script before you run this)
curl -Lks https://raw.githubusercontent.com/anden-dev/dotfilesv2/main/.bin/install.sh | /bin/bash
alias dot='git --git-dir=$HOME/.dot/ --work-tree=$HOME'