Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T22:12:57.000Z (over 3 years ago)
- Last Synced: 2023-03-28T21:45:08.277Z (over 1 year ago)
- Topics: fishshell, npm, ohmyfish, scripts, touchbar
- Language: Shell
- Homepage:
- Size: 4.87 MB
- Stars: 47
- 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[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE)
[![Fish Shell Version](https://img.shields.io/badge/fish-v2.2.0-007EC7.svg?style=flat-square)](https://fishshell.com)
[![Oh My Fish Framework](https://img.shields.io/badge/Oh%20My%20Fish-Framework-007EC7.svg?style=flat-square)](https://www.github.com/oh-my-fish/oh-my-fish)
## Installing
```fish
$ omf install touchrunner
```## What will you get
![Touchrunner demo](touchrunner.gif "Touchrunner demo")
## 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