mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Run npm script
@@ -1256,6 +1256,14 @@ https://gist.github.com/junegunn/15859538658e449b886f (for OS X)
|
|||||||
### NPM
|
### NPM
|
||||||
[npm-fzf](https://github.com/hankchanocd/npm-fzf) - Fuzzy search npm modules with `fzf`.
|
[npm-fzf](https://github.com/hankchanocd/npm-fzf) - Fuzzy search npm modules with `fzf`.
|
||||||
|
|
||||||
|
```
|
||||||
|
# run npm script (requires jq)
|
||||||
|
fns() {
|
||||||
|
local script
|
||||||
|
script=$(cat package.json | jq -r '.scripts | keys[] ' | sort | fzf) && npm run $(echo "$script")
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Locate
|
### Locate
|
||||||
|
|
||||||
`Alt-i` to paste item from `locate /` output (zsh only):
|
`Alt-i` to paste item from `locate /` output (zsh only):
|
||||||
|
|||||||
Reference in New Issue
Block a user