What is YADM?
YADM stands for Yet Another Dotfiles Manager, this allows you to track dotfiles using git. Once you run yadm clone
locally, this will automatically distribute your dotfiles on your machine and update them with any changes.
Setup
-
Install yadm
sh apt update apt install yadm
or
sh brew install yadm
-
Clone the repo using yadm
sh yadm clone git@github.com:Camfurbush/dotfiles.git
-
Update when needed
sh yadm pull origin main
Troubleshooting
-
How to encrypt files
sh export GPG_TTY=$(tty) # Add this to your ~/.bashrc yadm encrypt
-
How to add files using yadm
sh yadm add ~/.config/yadm/files.gpg yadm commit -m "add encrypted files" yadm push origin HEAD:main
-
How to update files locally
sh yadm pull origin main