boost

Getting started

1. Install

npm install -g command-shortner

Check it works:

boost --version

2. Save your first alias

boost add gs "git status"
boost gs

That's the whole idea: save a long command once, run it with a short name.

3. Open a new terminal

Installing boost also sets up your shell, so in a new terminal you can type your aliases directly, and press Tab to finish names:

gs          # same as: boost gs

boost adds one line to your shell config file for this. Remove it with boost shell --uninstall, or skip it during install with BOOST_NO_SHELL_SETUP=1.

If a name is already a command on your computer (like date), the real command wins, and your alias works as boost date. boost warns you when you save such a name and lets you pick a different one.

4. Bring in what you already have

boost import --from-shell   # aliases from ~/.bashrc, ~/.zshrc, fish config
boost suggest               # long commands you type often
boost pack git              # a starter pack of git shortcuts

5. Try it in a project

Go to any project folder and run:

boost tasks

boost lists the tasks it found (npm scripts, Makefile targets, and more). Run one with boost <task>.

To share shortcuts with your team, create a project file:

boost init
boost add dev "npm run dev" --project

Commit .boost.yaml to git.

Next

Edit this page on GitHub