Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts with PowerShell New-Item shorthand #21

Closed
ivancuric opened this issue Jun 17, 2021 · 2 comments
Closed

Conflicts with PowerShell New-Item shorthand #21

ivancuric opened this issue Jun 17, 2021 · 2 comments
Labels
help wanted Extra attention is needed os:windows

Comments

@ivancuric
Copy link

ivancuric commented Jun 17, 2021

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

@antfu
Copy link
Member

antfu commented Jun 17, 2021

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

@antfu antfu added help wanted Extra attention is needed os:windows labels Jun 17, 2021
@innocenzi
Copy link

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.

@antfu antfu closed this as completed Oct 18, 2021
@antfu-collective antfu-collective locked as resolved and limited conversation to collaborators Oct 18, 2021
@antfu antfu pinned this issue Feb 11, 2022
@antfu antfu unpinned this issue Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed os:windows
Projects
None yet
Development

No branches or pull requests

3 participants