Skip to content

Instantly share code, notes, and snippets.

@matdave
Created May 23, 2024 20:13
Show Gist options
  • Save matdave/b8859240c827889f6d7291e1364cc350 to your computer and use it in GitHub Desktop.
Save matdave/b8859240c827889f6d7291e1364cc350 to your computer and use it in GitHub Desktop.
Powershell Profile
# Alternative for `nvm use` on nvmrc
Function nvm-use
{
if (Test-Path -Path .\.nvmrc -PathType Leaf) {
$version = Get-Content .\.nvmrc -Raw
nvm use $version.Trim().ToLower()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment