Load nvm on-demand
nvm startup is slow on WSL. This is WSL’s fault, not nvm’s. All the process forking in nvm’s startup is slow. My work machine’s corporate virus scanner mi...
nvm startup is slow on WSL. This is WSL’s fault, not nvm’s. All the process forking in nvm’s startup is slow. My work machine’s corporate virus scanner mi...
I wanted to write a PowerShell command that wraps another, accepting (almost) all the same params and passing them to the target, sorta like a command proxy ...
Use case: You want to run docker commands from WSL bash. You’re running Windows and have Docker for Windows installed. For example, most of my team at work...
Object.assign({}, a, b) – or any other code doing essentially the same thing – can be thought to merge a and b, so naively the return type is A & B. But...
I’m a big fan of PowerShell, but scripts can require some annoying boilerplate. Here’s what I’m using lately for new scripts: #!/usr/bin/env pwsh param( ...