Skip to content

Instantly share code, notes, and snippets.

@brumm
Created November 8, 2024 17:58
Show Gist options
  • Save brumm/2d9fd675c0c0aa929c3430d8f8c3e7a8 to your computer and use it in GitHub Desktop.
Save brumm/2d9fd675c0c0aa929c3430d8f8c3e7a8 to your computer and use it in GitHub Desktop.
cat package.json |
fx 'x => Object.entries(x.scripts).map(x => `${x[0]} ${x[1]}`).join("\n")' |
awk '{print $1 " \033[2m" $2 "\033[0m"}' |
fzf --cycle --layout reverse --height ~100% --border --info hidden --ansi \
--bind 'enter:become(npm run {1})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment