Skip to content

Instantly share code, notes, and snippets.

View GoldenMaximo's full-sized avatar

Gustavo Máximo Filho GoldenMaximo

View GitHub Profile
@GoldenMaximo
GoldenMaximo / PowerShellAutoReadNvmrc.md
Last active May 2, 2026 21:14
Automatically reads .nvmrc in PowerShell 7 when using nvm use

Open your profile (code $PROFILE) and add:

function nvm {
    if ($args[0] -eq 'use' -and $args.Count -eq 1) {
        $nvmrcPath = Join-Path (Get-Location) '.nvmrc'
        if (-not (Test-Path $nvmrcPath)) {
            Write-Host "No .nvmrc found in current directory." -ForegroundColor Red
            return
        }
@GoldenMaximo
GoldenMaximo / coverage.json
Last active January 16, 2026 22:05
test-coverage
{"label":"Coverage","message":"96.78%","schemaVersion":1,"color":"hsl(116, 100%, 40%)","namedLogo":"jest","style":"flat"}