侏儒终端发射器
gtlaunch的Python项目详细描述
gtlaunch启动带有预定义选项卡的gnome终端,运行命令 在每个选项卡中,如果命令退出,则将您留在shell中,这样您就可以 直接跳下去工作。观看演示:
先决条件
- 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
配置
默认情况下,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许可证授权。一份 许可证随许可证文件中的源代码一起提供。