Update 05.04.2026
This commit is contained in:
@@ -29,6 +29,8 @@ plugins=(... npm)
|
||||
| `npmI` | `npm init` | Run npm init |
|
||||
| `npmi` | `npm info` | Run npm info |
|
||||
| `npmSe` | `npm search` | Run npm search |
|
||||
| `npmrd` | `npm run dev` | Run npm run dev |
|
||||
| `npmrb` | `npm run build` | Run npm run build |
|
||||
|
||||
## `npm install` / `npm uninstall` toggle
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
(( $+commands[npm] )) && {
|
||||
rm -f "${ZSH_CACHE_DIR:-$ZSH/cache}/npm_completion"
|
||||
command rm -f "${ZSH_CACHE_DIR:-$ZSH/cache}/npm_completion"
|
||||
|
||||
_npm_completion() {
|
||||
local si=$IFS
|
||||
@@ -58,7 +58,7 @@ alias npmt="npm test"
|
||||
# Run npm scripts
|
||||
alias npmR="npm run"
|
||||
|
||||
# Run npm publish
|
||||
# Run npm publish
|
||||
alias npmP="npm publish"
|
||||
|
||||
# Run npm init
|
||||
@@ -70,6 +70,12 @@ alias npmi="npm info"
|
||||
# Run npm search
|
||||
alias npmSe="npm search"
|
||||
|
||||
# Run npm run dev
|
||||
alias npmrd="npm run dev"
|
||||
|
||||
# Run npm run build
|
||||
alias npmrb="npm run build"
|
||||
|
||||
npm_toggle_install_uninstall() {
|
||||
# Look up to the previous 2 history commands
|
||||
local line
|
||||
|
||||
Reference in New Issue
Block a user