帮助“终结者”配置,或任何可以执行相同功能的工具
在开发项目期间,我必须在 gnome-terminal 中打开多个选项卡,其中一些选项卡仅用作输出流,其他选项卡用作 shell 提示符。
他们是自动化这项任务的一种方法吗? 就像运行一个自动打开多个终端并在每个终端上运行某些命令的脚本一样,这些终端是垂直或水平显示的,而不是像网格显示或其他东西一样显示在选项卡(或不同的窗口)中。
“终结者”正是我想要的,但我只是无法将其配置为像我想要的那样工作。 我不明白“布局”的事情
这是我的“配置”文件的一部分:
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
position = left
[[[child2]]]
type = Terminal
parent = window0
position = left
[[[window0]]]
type = Window
parent = ""
当我运行终结者时,会打印出一条错误,说我的子项数量不正确,然后“终结者”正常显示在一个终端上。
我不知道我在这里做错了什么,我将不胜感激任何有关“终结者”或具有相同功能的工具的帮助。
谢谢。
During developing a project I had to open multiple tabs in gnome-terminal, some of them as just output streams, others for the shell prompt.
Is their a way to automate this task.
Like running a script that automatically opens multiple terminals and run certain commands on each of them, and these terminals are displayed vertically or horizontally rather than in tabs ( or different windows ) like grid-display or something.
'Terminator' does exactly what I want, but I just can't configure it to work like what I want.
I don't get the 'Layout' thing
Here's part of my 'config' file:
[layouts]
[[default]]
[[[child1]]]
type = Terminal
parent = window0
position = left
[[[child2]]]
type = Terminal
parent = window0
position = left
[[[window0]]]
type = Window
parent = ""
When I run terminator, an error is printed out saying that I there's an incorrect number of children, and then 'terminator' appears normally with a single terminal.
I don't know what I'm doing wrong here, I would appreciate any help with 'Terminator' or with any tool that has the same functionality.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(4)
好吧,我建议你忘记终结者(来自一个漫长的时间终结者用户)并学习使用像 tmux 这样的终端多路复用器。有一个名为 tmuxinator 的 gem,它可以让您使用 YAML 配置会话,所以它非常非常简单。
对于 tmux,我建议您从 Brian 的书《tmux:高效无鼠标开发》开始霍根。
我一直在开发一个 shell 脚本来完全满足您的需求
https://github.com/vahidhedayati /terminator-win-splitter
chmod to 755
./termcon.sh -h
./termcon.sh -c {连接到现有布局 - 按 Enter 键,它将列出您现有的布局 }
./termcon.sh -f filename.txt {连接到 filename.txt 中列出的服务器并存储布局}
./termcon.sh -l prod ta ce cex {列出生产环境中具有 tomcat 或 apache 的 ce cex 自动发现的节点命名 } }
./termcon.sh -a prod ta ce cex {连接到生产环境中自动发现的 ce cex 节点,这些节点在命名中具有 tomcat 或 apache商店布局}
我仍在研究窗口分割,它非常复杂,但现在它可以毫无问题地进行 4 个窗口分割,当它工作时,我再次通过电子邮件发送它只是
./termcon.sh -w 的情况8 -a prod ta ce cex
./termcon.sh -w 8 -f file.txt
如果通过文件调用,我还建议根据服务器命名约定命名文件,因为一旦存储布局,它就不会覆盖它
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我认为你必须尝试 terminator 一个 ruby gem,它将帮助你管理自动化配置文件。
另外,另一种选择是 teamocil
I think you have to try terminator a ruby gem that will help you to mange automation config files.
Also, an alternative is teamocil