Gnome终端启动器
项目描述
gtlaunch 使用预定义的选项卡启动Gnome终端,在每个选项卡中运行命令,如果命令退出则留在shell中,以便您可以直接开始工作。请参阅演示
先决条件
Linux带有Gnome
ZSH(其他shell的支持正在开发中)
Python 2.7或3.3+
安装
安装提供可执行脚本的Python包的推荐方法是使用 pipsi
pipsi install gtlaunch
但是 pip 也可以工作
pip install gtlaunch
将以下内容添加到您的 .zshrc 文件中(有关解释,请参阅 此消息)
if [[ $1 == eval ]]
then
"$@"
set --
fi
配置
默认情况下,gtlaunch 从用户主目录中的 gtlaunch.json 文件读取其配置。这可以通过传递配置文件的位置到 --config 选项来覆盖
gtlaunch --config ../my-projects.json
以下是一个示例配置文件(注意:JSON不允许注释,这些只是供参考)
{
// 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"
]
}
}
资源
许可证
gtlaunch 是免费软件,根据MIT/X11许可证授权。许可证副本包含在源代码中的 LICENSE 文件中。
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源代码分发
gtlaunch-0.2.tar.gz (4.3 kB 查看哈希值)
构建分发
gtlaunch-0.2-py2.py3-none-any.whl (6.9 kB 查看哈希值)
关闭
gtlaunch-0.2.tar.gz的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | a103825c0dd87a3c34d487f51c238456c70ddf4ab75510e796fdde73255e8418 |
|
| MD5 | 0c387495f4ebb688c8a50c8858335ffc |
|
| BLAKE2b-256 | f894f08deb2af577482a3a9f10082936116c846b9cc834ed1a9e85dbcb3a53b5 |
关闭
gtlaunch-0.2-py2.py3-none-any.whl的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 1885020a3dbcb72826dcd5c7e271856f1282d9958eac23c3978c15f4c55cfb6f |
|
| MD5 | 55663ae20eefa799b34756d497f5f4b2 |
|
| BLAKE2b-256 | 8c3784f4bacb513c8115774baf67dad95200d8d2e83dc11bb0ad37d029af8ef8 |