Skip to content

Odas0R/x-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

x-cmd

Have you ever tried the npm completion of bash?

It's horribly slow.

I'm used to to autocomplete scripts, thus creating x. It's a simple wrapper for the command npm run that uses the jq program to process the package.json files for scripts.

Instead of using npm run, use x 🍭

Autocompletion

Just source this on your .bashrc:

if [[ -x "$(command -v x)" ]]; then
  complete -C x x
fi

Note: You'll need to have x globally accessible, must be accessible through your $PATH.

Dependencies

About

A replacement for `npm run` command 🚧

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages