0.4.0 • Published 4 years ago

iterm-tab v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

iterm-tab

Open iterm tab and run a command programmatically

Install

yarn add iterm-tab

Usage

const itermTab = require('iterm-tab')

itermTab(`cd .. && echo "my command"`)
  .then(() => console.log('yay'))

API

itermTab(command, options)

command

The command to execute after open the new tab

Type: String

options

Type: Object

options.close

Closes tab immediately or after n seconds. Useful to launch persistent services like mongod.

Type: Boolean|Number

Default: false

options.delayAfterRun

Wait number of seconds before let continue the tasks.

Type: Number

Default: 0

options.splitTab

Split the current tab horizontally or vertically then run the command.

Type: Boolean|String

Default: false

For Vertical Split: { splitTab: 'vertically' }

For Horizontal Split: { splitTab: 'horizontally' }

Example

Take a look into this example running two instances of iterm-tab

0.4.0

4 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago