跳转到主要内容

Gnome终端启动器

项目描述

Latest PyPI version Number of PyPI downloads Supported Python versions Wheel Status https://travis-ci.org/zsiciarz/gtlaunch.svg?branch=master https://coveralls.io/repos/zsiciarz/gtlaunch/badge.png?branch=master

gtlaunch 使用预定义的选项卡启动Gnome终端,在每个选项卡中运行命令,如果命令退出则留在shell中,以便您可以直接开始工作。请参阅演示

http://zippy.gfycat.com/EarlyBlackGrub.gif

先决条件

  • 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 查看哈希值)

上传时间 Python 2 Python 3

由以下支持