felipecrs / dotfiles

Bootstrap your Ubuntu in a single command!
MIT License
293 stars 41 forks source link

So what has your experience been with devcontainers and dotfiles? #79

Closed shadycuz closed 2 years ago

shadycuz commented 2 years ago

I'm looking to start using a dotfile repo, mainly because I use so many devcontainers now and I'm sick of not having a consistent shell. How is chezmoi?

felipecrs commented 2 years ago

Hi @shadycuz 👋!

My experience with devcontainers and dotfiles has been great! Chezmoi is awesome!

Little demo:

https://user-images.githubusercontent.com/29582865/174459272-ef7ed06f-ef33-46bf-8271-6d97072c9e63.mp4

shadycuz commented 2 years ago

Oh yeah thats super sweet =).

I'm wondering if I should have Chezmoi call Ansible to do my machine bootstrapping, not my dev containers but my actual machine. Instead of trying to make my install scripts idempotent.

felipecrs commented 2 years ago

Bro, I spent countless hours because I didn't do that. I think I would do that, if I were to start now.

shadycuz commented 2 years ago

What did you do for visual studio code? Are you still setting the file extension stuff to helm?

felipecrs commented 2 years ago

Yes, for yaml files I'm using the Helm Intellisense. For everything else, I try to put the template markers in comment blocks so it does not affect the whole file syntax.

Like this:

https://github.com/felipecrs/dotfiles/blob/c1493f385fee7981c435580771f314df4f3ceaae/root/.chezmoiscripts/run_after_10-install-apt-packages.sh.tmpl#L31-L40