Ni: Conflicts with PowerShell `New-Item` shorthand

Created on 17 Jun 2021  ·  2Comments  ·  Source: antfu/ni

ni is a shorthand for New-Item in PowerShell. It can be aliased to npx @antfu/ni though.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.1

help wanted windows

Most helpful comment

Hey, the solution is to add Remove-Alias -Name ni -Force to your PowerShell profile. Your profile file path is stored in $PROFILE and if you need to create a new one, you can follow the documentation. Hope that helps.

All 2 comments

I would like to know the solution for this as well 👀

Hey, the solution is to add Remove-Alias -Name ni -Force to your PowerShell profile. Your profile file path is stored in $PROFILE and if you need to create a new one, you can follow the documentation. Hope that helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oskarrough picture oskarrough  ·  3Comments

DanielRosenwasser picture DanielRosenwasser  ·  3Comments

Makio64 picture Makio64  ·  3Comments

MaartenUreel picture MaartenUreel  ·  3Comments

awesomeindustries picture awesomeindustries  ·  3Comments