Hacker News new | ask | show | jobs
by spywhere 1654 days ago
I did the same with my dotfiles setup, but it's for my personal preferences.

Moreover, I think I have more options to skip particular part / packages while also try to be idempotent as much as it can.

https://github.com/spywhere/dotfiles

2 comments

Ha, I also have something similar[1], but I use a mix of profiles and flavors. I have two profiles: pkg for installing packages and user for configuring user profiles. Profiles are then broken down further with flavors: dev for development packages, desktop for desktop packages and configurations, and so on.

I found it highly amusing that we're taking similar approaches for a lot of things: a wrapper function for sudo and fetch, and OS detection (especially the appending WSL suffix part). Mine is not as idempotent as yours, and having a per-package definition is still in my TODO list, though.

[1]: https://github.com/sirn/dotfiles

I think you should post this separately. It appears to of been painstakingly developed over a long time and has an array of options I would expect from a professional setup.
It definitely been working on for quite some time. I start working on it as a simple setup with just `Brewfile` for brew bundle, then adding custom comments to run grep + xargs to pipe to Aptitude / APK / package manager to install the same package for different platforms.

I find myself constantly either in need of reinstalling the whole OS or setup my environment a lot, hence I need to make the setup flexible and various options to better reduce the time I spent manually install stuffs.