mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings
283 stars 15 forks source link

Feature/gnome terminal #27

Closed ksvirsky closed 4 years ago

ksvirsky commented 4 years ago

Hi Michael. Recreated the same pull request to be merged. I just need the changes urgently and created separate package. Will use ttab with pleasure once you could review and merge this pull request. Thank you.

mklement0 commented 4 years ago

Thanks again, @ksvirsky.

I've merged the PR into the master branch, but I'm not ready to package it and publish it to the npm registry / Homebrew.

I will let you know once I've done so.

The challenges are:

ksvirsky commented 4 years ago

Hi Michael. Glad to hear that. I agree these items have to be resolved first. Thanks.

mklement0 commented 4 years ago

I finally got around to completing this - v0.7.0 has been released; thanks again.

See the manual for details. There are limitations around passing commands to run in the new tab, unfortunately, notably defaulting to $SHELL even if the specified profile (-s) may be configured to run a different shell.

The new tab is kept open by default even if you specify a command, as on macOS. To automatically close a tab after command execution, use exec before a single command or end a multi-command command string with exit.