Ask HN: Homebrew, Asdf, Nix, or Other?
New Macbook Air incoming and want to find out what the hive mind recommends for a fresh machine. On the old one I used Homebrew mostly but asdf for Ruby and Python. Was always happy with Apple Terminal + Oh My zsh. What’s your setup?
25 comments
[ 10.5 ms ] story [ 95.3 ms ] thread[1]: https://aquaproj.github.io/
[1]: https://aquaproj.github.io/
[1]: https://pkgx.app/
I use multipass/qemu on my m2 and it works wonders. Another benefit is that I don’t run third party deps directly on my machine.
The main consideration I have is whether to manage languages via brew or via things like NVM for node, Pyenv for python etc.I don’t remember what I did for python but using poetry works flawlessly.
Not worth fiddling with the other package managers. Homebrew just works and never gave me much of an issue.
Personally I didn't care about shims or performance. I find the asdf commands to be difficult to remember because they are unintuitive. See the "UX" section of the link above.
I am mainly with JS tech stack for years and play around Python from time to time - My set up in my machine is iterm2 + Oh-My-Zsh(theme) + plugins(e.g. autoJump & zsh Autosuggestions). I cant live without Autosuggestions in my terminal.
Homebrew is ridiculously slow in my experience, and nix is quite easy when you stay on the happy path—and when you fall off of it homebrew is unlikely to help you anyway.
[1] - https://github.com/asdf-community/asdf-direnv
I use asdf for managing versions. Was using nvm, rbenv, etc previously.