Skip to content
Run npm scripts from the MacBook Pro Touch Bar
Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixture
functions
LICENSE Initial version w/ package.json support Dec 10, 2017
README.md README: add task runner command override docs Jul 15, 2018
init.fish Initial version w/ package.json support Dec 10, 2017
key_bindings.fish
touchrunner.gif

README.md

touchrunner

Run tasks from the touchbar

MIT License Fish Shell Version Oh My Fish Framework


Installing

$ omf install touchrunner

What will you get

Touchrunner demo

Requirements

  1. Have Oh My Fish installed. For more information, check here.
  2. Be using iTerm2, for Touch Bar support.

Usage

  1. Edit the Touch Bar (View -> Customize Touch Bar) to have only "Function keys" block.
  2. Enter a directory with a package.json and the tasks will appear at the touch bar.
  3. Exitting the directory makes the Touch Bar be restored to function keys.

Configuration

By default touchrunner will use npm run. If you want to switch the task runner, you can override via touchrunner_command global variable, eg.:

set -g touchrunner_command yarn

License

MIT © Derek Stavis

You can’t perform that action at this time.