侏儒终端发射器

gtlaunch的Python项目详细描述


Latest PyPI versionNumber of PyPI downloadsSupported Python versionsWheel Statushttps://travis-ci.org/zsiciarz/gtlaunch.svg?branch=masterhttps://coveralls.io/repos/zsiciarz/gtlaunch/badge.png?branch=master

gtlaunch启动带有预定义选项卡的gnome终端,运行命令 在每个选项卡中,如果命令退出,则将您留在shell中,这样您就可以 直接跳下去工作。观看演示:

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

先决条件

  • Linux with Gnome
  • ZSH (support for other shells is in the works)
  • Python 2.7 or 3.3+

安装

安装提供可执行脚本的python包的推荐方法 使用pipsi

pipsi install gtlaunch

但是pip也可以工作:

pip install gtlaunch

将以下内容添加到您的.zshrc(请参见 this message对于 说明):

if [[ $1 == eval ]]
then
    "$@"
    set --
fi

配置

默认情况下,gtlaunchgtlaunch.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许可证授权。一份 许可证随许可证文件中的源代码一起提供。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
onclicklistner中的java全局变量   Android中的Tensorflow:java。尼奥。BufferOverFlowException   java无法预先部署处于无效状态的PersistenceUnit[PU][DeployFailed]   java Liferay;将其他参数传递给jQuery UI aotocompleter   java如何使用Netflix/Eureka服务中的发现信息在Netflix/Zuul和Netflix/Ribbon中启用自动路由?   java如何使用命令打开spotlight   java Android为按钮分配数组值   jsp java。NoClassDefFoundError:即将推出java servlet   应用程序存储设置的java意图   java Android viewflow验证   java如何为多个列表重用BaseAdapter视图   在Java中,socket通过internet发送多播数据包   JavaXStream加载自定义XML