These are my dotfiles, as well as some common packages I have installed on my OS.
To install the dotfiles
binary and all my configurations, simply run the following
curl https://raw.githubusercontent.com/craicoverflow/dotfiles/main/install.sh | bash
This will install the dotfiles
binary and add it to your path.
To install the packages found in $DOTFILES_ROOT/config.yaml
:
dotfiles install
To specify a custom YQ path, pass the
YQ_PATH
environment variable:
YQ_PATH=$HOME/custom/bin/yq dotfiles install
If you wish to disable installation of some of these packages, add a config.local.yaml
file to the $DOTFILES_ROOT
folder, and only the configs you need to disable and set the value to false
:
---
brew:
packages:
- neovim: true
+ neovim: false
- docker: true
+ docker: true
When there are updates to the dotfiles repo, you can compare the changes with your dotfiles before you apply them:
dotfiles diff
If you are happy with then changes, run the following command to update your dotfiles:
dotfiles apply
If you have a dotfile you would like to be managed by this repo, run dotfiles add <path/to/dotfile> <folder/in/dotfiles-repo>
$ dotfiles add ~/.config/gh/config.yml gh
Creating directory /Users/jdoe/dotfiles/gh
TIP: Run
dotfiles add <from> <to> local
to add a dotfile for this repo but ignore it in Git.
Run the following command to open the dotfiles in your preferred edit ($EDITOR
):
dotfiles edit