Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ttab

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttab - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

14

CHANGELOG.md

@@ -7,2 +7,16 @@ # Changelog

* **[v0.5.0](https://github.com/mklement0/ttab/compare/v0.4.0...v0.5.0)** (2016-10-01):
* [new feature] `-q` now allows clearing the "screen" of the new tab after
opening using `clear`, assuming any command (list) passed succeeded.
* [enhancement] A quoted multi-command shell command string can now be
specified as a single - and only - operand, without having to precede with
an explicit `eval` command.
* [behavior change] If no custom title is specified with `-t <title>`, no
attempt is made anymore to auto-derive a meaningful tab title from the
shell command specified, as there is no heuristic that works well in all
cases.
* [fix] [Issue #7](https://github.com/mklement0/ttab/issues/7): iTerm2
now also preserves the current working dir. when opening a new tab in the
current window.
* **[v0.4.0](https://github.com/mklement0/ttab/compare/v0.3.1...v0.4.0)** (2016-09-13):

@@ -9,0 +23,0 @@ * [enhancement] `-a Terminal|iTerm2` now allows specifying the target Terminal

21

doc/ttab.md

@@ -9,3 +9,3 @@ <!-- DO NOT EDIT THIS FILE: It is auto-generated by `make update-man` -->

ttab [-w] [-s <settings>] [-t <title>] [-g|-G] [-d <dir>] [<cmd> [<arg>...]]
ttab [-w] [-s <settings>] [-t <title>] [-q] [-g|-G] [-d <dir>] [<cmd> ...]

@@ -15,2 +15,3 @@ -w open new tab in new terminal window

-t <title> specify title for new tab
-q clear the new tab's screen
-g create tab in background (don't activate Terminal/iTerm)

@@ -20,3 +21,4 @@ -G create tab in background and don't activate new tab

-a Terminal|iTerm2 open tab or window in Terminal.app / iTerm2
<cmd> [<arg>...] command to execute in the new tab
<cmd> ... command to execute in the new tab
"<cmd> ...; ..." multi-command command line (passed as single operand)

@@ -50,5 +52,3 @@ Standard options: `--help`, `--man`, `--version`, `--home`

To specify *multiple* commands, use `eval` followed by a single, quoted
string containing the entire shell command line to execute; in the simplest
case, enclose the string in single-quotes and use ';' to separate commands.
To specify *multiple* commands, pass them as a *single, quoted string*.
Use `exit` as the last command to automatically close the tab when the

@@ -85,2 +85,8 @@ command terminates, assuming the tab's settings are configured to close the

* `-q`
(*q*uiet) issues a `clear` command after opening the new tab.
Note that output will temporarily be visible while the tab is being opened;
also, clearing is not performed if any command passed reports an overall
nonzero exit code, so as to allow failures to be examined.
* `-g`

@@ -151,4 +157,5 @@ (back*g*round) causes Terminal/iTerm2 not to activate, if it isn't the

# Pass a multi-command string via 'eval', wait for a keystroke, then exit.
ttab eval 'ls "$HOME/Library/Application Support";
# Pass a multi-command string as a single, quoted string, wait for a
# keystroke, then exit.
ttab 'ls "$HOME/Library/Application Support";
echo Press any key to exit; read -rsn 1; exit'

@@ -155,0 +162,0 @@

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.4.0",
"version": "0.5.0",
"os": [

@@ -26,4 +26,7 @@ "darwin"

"keywords": [
"macos",
"osx",
"terminal",
"iterm",
"iterm2",
"cli",

@@ -30,0 +33,0 @@ "tabs",

@@ -24,3 +24,3 @@ [![npm version](https://img.shields.io/npm/v/ttab.svg)](https://npmjs.com/package/ttab) [![license](https://img.shields.io/npm/l/ttab.svg)](https://github.com/mklement0/ttab/blob/master/LICENSE.md)

An [OS X](https://www.apple.com/osx/) CLI for programmatically opening a new terminal tab/window in the standard terminal application, `Terminal`,
A [macOS (OS X)](https://www.apple.com/osx/) CLI for programmatically opening a new terminal tab/window in the standard terminal application, `Terminal`,
or in popular alternative [`iTerm2`](http://www.iterm2.com/), optionally with a command to execute and/or a specific title and specific display settings.

@@ -66,2 +66,6 @@

# Open a new tab and execute *multiple* commands in it - note how the entire
# command line is specified as *single, quoted string*.
ttab -t 'git branch; git status'
# Open a new tab, switch to the specified dir., then execute the specified

@@ -81,3 +85,3 @@ # command before showing the prompt.

# Open a new tab, execute a command, wait for a keypress, and exit.
ttab eval 'ls "$HOME/Library/Application Support"; echo Press a key to exit.; read -rsn 1; exit'
ttab 'ls "$HOME/Library/Application Support"; echo Press a key to exit.; read -rsn 1; exit'

@@ -100,3 +104,3 @@ # Open a new tab in iTerm2 (if installed).

ttab [-w] [-s <settings>] [-t <title>] [-g|-G] [-d <dir>] [<cmd> [<arg>...]]
ttab [-w] [-s <settings>] [-t <title>] [-q] [-g|-G] [-d <dir>] [<cmd> ...]

@@ -106,2 +110,3 @@ -w open new tab in new terminal window

-t <title> specify title for new tab
-q clear the new tab's screen
-g create tab in background (don't activate Terminal/iTerm)

@@ -111,3 +116,4 @@ -G create tab in background and don't activate new tab

-a Terminal|iTerm2 open tab or window in Terminal.app / iTerm2
<cmd> [<arg>...] command to execute in the new tab
<cmd> ... command to execute in the new tab
"<cmd> ...; ..." multi-command command line (passed as single operand)

@@ -149,2 +155,16 @@ Standard options: --help, --man, --version, --home

* **[v0.5.0](https://github.com/mklement0/ttab/compare/v0.4.0...v0.5.0)** (2016-10-01):
* [new feature] `-q` now allows clearing the "screen" of the new tab after
opening using `clear`, assuming any command (list) passed succeeded.
* [enhancement] A quoted multi-command shell command string can now be
specified as a single - and only - operand, without having to precede with
an explicit `eval` command.
* [behavior change] If no custom title is specified with `-t <title>`, no
attempt is made anymore to auto-derive a meaningful tab title from the
shell command specified, as there is no heuristic that works well in all
cases.
* [fix] [Issue #7](https://github.com/mklement0/ttab/issues/7): iTerm2
now also preserves the current working dir. when opening a new tab in the
current window.
* **[v0.4.0](https://github.com/mklement0/ttab/compare/v0.3.1...v0.4.0)** (2016-09-13):

@@ -151,0 +171,0 @@ * [enhancement] `-a Terminal|iTerm2` now allows specifying the target Terminal

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc