DEV Community

Discussion on: How do you manage your dotfiles across multiple and/or new developer machines?

Collapse
 
nickjj profile image
Nick Janetakis • Edited

I just keep a dotfiles repo on GitHub and sync it / set it up with Ansible. It's nice because the same Ansible role works in WSL on Windows and a native Linux box.

Collapse
 
lostintangent profile image
Jonathan Carter

Is the Ansible role code in the same dotfiles repo? That way you can clone it and run Ansible on it?

Collapse
 
nickjj profile image
Nick Janetakis • Edited

Nope, right now that specific Ansible role isn't open source since it has very personalized information in it specific to my development environment but if it were to be released, it would be in its own separate repo as a dedicated dotfiles Ansible role.

Then you would configure the role to set up your dotfiles. At some point I may refactor it all to be a general role, but it's not a super high priority at the moment. It mainly just clones my dotfiles repo and sets up symlinks.

Currently I have that functionality along with some other things all smashed together in a custom role, which happens to do other things besides dotfiles but is related to setting up a new WSL / Linux development environment.