https://github.com/derekstavis/touchrunner
Run npm scripts from the MacBook Pro Touch Bar
https://github.com/derekstavis/touchrunner
fishshell npm ohmyfish scripts touchbar
Last synced: 4 days ago
JSON representation
Run npm scripts from the MacBook Pro Touch Bar
- Host: GitHub
- URL: https://github.com/derekstavis/touchrunner
- Owner: derekstavis
- License: mit
- Created: 2017-12-10T22:10:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T22:12:57.000Z (almost 4 years ago)
- Last Synced: 2025-06-03T01:54:05.697Z (about 1 month ago)
- Topics: fishshell, npm, ohmyfish, scripts, touchbar
- Language: Shell
- Homepage:
- Size: 4.87 MB
- Stars: 48
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### touchrunner
> Run tasks from the touchbar[](/LICENSE)
[](https://fishshell.com)
[](https://www.github.com/oh-my-fish/oh-my-fish)
## Installing
```fish
$ omf install touchrunner
```## What will you get

## Requirements
1. Have **Oh My Fish** installed. For more information, check [here](https://github.com/oh-my-fish/oh-my-fish#installation).
1. Be using **iTerm2**, for Touch Bar support.## Usage
1. Edit the Touch Bar (View -> Customize Touch Bar) to have only "Function keys" block.
1. Enter a directory with a `package.json` and the tasks will appear at the touch bar.
1. 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.:```fish
set -g touchrunner_command yarn
```# License
[MIT][mit] © [Derek Stavis][author]
[mit]: https://opensource.org/licenses/MIT
[author]: https://github.com/derekstavis
[omf-link]: https://www.github.com/oh-my-fish/oh-my-fish[license-badge]: https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square