0.1.6 • Published 5 years ago

projtabs v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

license

projtabs Automated project terminal tab/window opener

A macOS CLI for programmatically opening new terminal tabs/windows for a given project.

Open terminal tab/window functionality built off ttab.

Installation

npm install projtabs -g

Usage

Place .projrc file at the root of your project and execute projtabs.

$ projtabs

.projrc Example

{
  "dirs": [
    {
      "path": "~",
      "name": "Home directory in new tab",
      "cmd": "echo 'Hello new terminal tab'",
      "window": false
    },
    {
      "path": "lib",
      "name": "Folder in a new window",
      "cmd": "echo 'Hello new terminal window'",
      "window": true
    },
    "someOtherDir"
  ],
  "options": {
    "exit": false
  }
}

Config

"dirs" takes either an array of strings representing the new terminal's path or objects containing a set of new terminal options listed below.

  • "path" String: Path to start new terminal.

  • "name" String: Name of new terminal.

  • "cmd" String: Command to execute when new terminal opens.

  • "window" Boolean: Open new terminal in window (defaults to false).

"options" additional optional configuration options.

  • "exit" Boolean: Sends a signal to the active terminal to close after execution (defaults to false).
0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago