10 Managing my dotfiles
I am using chezmoi to manage my dotfiles.
10.1 Installation
10.2 Usage
First, I have to add/track files using:
chezmoi add [ files ]
Then I can edit my dotfiles using:
chezmoi edit
Or use this to go to the dotfiles directory. This is where the changes should me made.
chezmoi cd
This will open (ex. (n)vim) so I can make changes. Once I am done, I can use this apply the changes to the local directory (where the actual dotfiles are located).
chezmoi -v apply
Finally, I can push the dotfiles directory to GitHub:
git add .
git commit -m "..."
git push