gtlaunch
gtlaunch launches Gnome Terminal with predefined tabs, runs a command in each tab and leaves you in the shell if the command quits, so you can jump straight to work. See the demo:
Prerequisites
Linux with Gnome
ZSH (support for other shells is in the works)
Python 2.7 or 3.3+
Installation
The recommended way to install Python packages which provide executable scripts is to use pipsi:
pipsi install gtlaunch
But pip also works:
pip install gtlaunch
Add the following to your .zshrc (see this message for an explanation):
if [[ $1 == eval ]]
then
"$@"
set --
fi
Configuration
By default, gtlaunch reads its configuration from a gtlaunch.json file located in user’s home directory. This can be overridden by passing the location of config file to --config option:
gtlaunch --config ../my-projects.json
Here’s an example configuration file (note: JSON does not allow comments, these are just for reference):
{
// The configuration is an object where keys are project names
// and values store per-project settings.
"simple_project": {
// The simplest setup is just a list of commands under the tabs key
"tabs": ["vim", "python", "git status"]
},
"more_options": {
// prefix specifies a command that will be run before each tab's
// command executes
"prefix": "workon test",
// you can specify working directory; ~ will be expanded
"cwd": "~/Development",
"tabs": [
// the extended format allows more options, see below
{
// command is required
"command": "vim",
// title is optional, defaults to command
"title": "editor"
},
// you can mix&match both formats
"python",
"git status"
]
}
}
Resources
License
gtlaunch is free software, licensed under the MIT/X11 License. A copy of the license is provided with the source code in the LICENSE file.
Metadata
Release files for gtlaunch 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtlaunch-0.2.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtlaunch-0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 11.2 kB
Release files / gtlaunch-0.2.tar.gz
| Download URL | gtlaunch-0.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a103825c0dd87a3c34d487f51c238456c70ddf4ab75510e796fdde73255e8418
|
|
BLAKE2b-256 checksum How to use checksums |
f894f08deb2af577482a3a9f10082936116c846b9cc834ed1a9e85dbcb3a53b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / gtlaunch-0.2-py2.py3-none-any.whl
| Download URL | gtlaunch-0.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1885020a3dbcb72826dcd5c7e271856f1282d9958eac23c3978c15f4c55cfb6f
|
|
BLAKE2b-256 checksum How to use checksums |
8c3784f4bacb513c8115774baf67dad95200d8d2e83dc11bb0ad37d029af8ef8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |