antfu-collective / ni

💡 Use the right package manager
MIT License
6.25k stars 208 forks source link

New `nd` `ns` `nt` `nb` shortcut commands #221

Closed musicq closed 1 month ago

musicq commented 1 month ago

Clear and concise description of the problem

nr is a common shortcut for running any scripts. But most times we will be running these commands during development

Suggested solution

Usually, I'll add some aliases to my terminal config

alias nd="nr dev"
alias nt="nr test:w || nr test"
alias nb="nr build"

But I'm thinking it would be good if ni provides it by default.

If worrying about naming conflicts https://github.com/antfu-collective/ni/issues/33, I think ni can support a more generalized solution, like allowing user to configure these aliases in the .nirc file. But seems like to make no difference than configuring in a .zshrc file.

Alternative

No response

Additional context

No response

Validations

antfu commented 1 month ago

Thanks but I believe those local aliases are good enough. We no longer add new commands.