How did I know it was going to be `nvm` before I clicked?
supriyo-biswas 9 hours ago [-]
All the package managers that provide shell wrappers kinda tend to be bad at this, unless they use their own command to wrap over project specifications, like uv.
These days, I've been personally relying more on direnv to automatically activate certain shell configurations, and then nix to manage binary dependencies like node or go or php.
jdxcode 7 hours ago [-]
mise isn't, and has the advantage that you don't need to build your own lightsaber with direnv and nix.
ricardobeat 7 hours ago [-]
In my experience direnv is also a source of slowness. How fast is it for you?
drdexebtjl 6 hours ago [-]
My understanding is that nix-direnv caches the environment, so after you first evaluate it, it’s pretty much instant.
I haven’t timed it, but it’s not perceptible imo.
jasonpeacock 1 hours ago [-]
Huh, I just ran the same timing command for my fish shell (with starship prompt) and got 168ms.
What all is happening in the Zsh profile?
ricardobeat 7 hours ago [-]
Having gone through the same experience, I suggest dropping fnm as well; I don’t recall what exactly causes it, but it will eventually slow down too.
I’ve been using mise [1] to manage node versions since with zero issues.
I haven't had any issues with `fnm` so far. It's been fast and I like how it prompts you to install a missing node version as soon as you jump into a directory with a `.nvmrc` file.
c-hendricks 5 hours ago [-]
Mise does similar, but for a while suite of tools instead of just nodejs.
My mini-story: I'd switched to zimfw which does a ton of caching, precompiling. It benches very well versus other zsh frameworks. But something was still taking almost a second for me, every time. https://github.com/zimfw/zimfw
- also you should put a list of all your article. (titles only) on some page called /archive or something
- i really dont want to scroll 5000 pages to see the last 20 articles you wrote
- just a suggestion from a ui / ux perspective
https://arunmozhi.in/2024/09/06/replacing-pyenv-nvm-direnv-w...
These days, I've been personally relying more on direnv to automatically activate certain shell configurations, and then nix to manage binary dependencies like node or go or php.
I haven’t timed it, but it’s not perceptible imo.
What all is happening in the Zsh profile?
I’ve been using mise [1] to manage node versions since with zero issues.
[1] https://mise.jdx.dev
zprof helped me and the LLM profile and we found it was one plugin, which wasn't really intended specifically for zim. Fixed that! https://github.com/lipov3cz3k/zsh-uv/issues/2
Man it feels so good having shells just open so lightning fast.