Skip to content

Odas0R/x-cmd

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
x
 
 

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