工作需要,需要在本机启动非常多的终端,一直在用byobu。但是每次关机重启后,又要在byobu里重新切割窗口,重新打开所有的终端,太麻烦了。 有没有办法可以快速的恢复之前的终端布局。
或者,有没有哪位仁兄尤其它的解决方案,不用byobu也没问题。
byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
-
- 帖子: 233
- 注册时间: 2011-10-15 0:32
-
- 帖子: 334
- 注册时间: 2007-12-19 16:15
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
然后用tmux attach启动即可。
-
- 帖子: 233
- 注册时间: 2011-10-15 0:32
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
多谢,这个可以启动多个窗口,但是每个窗口怎么切分似乎不能做? tmux可以切分窗口吗?alanfly 写了:参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
-
- 帖子: 334
- 注册时间: 2007-12-19 16:15
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
当然可以。csumck 写了:多谢,这个可以启动多个窗口,但是每个窗口怎么切分似乎不能做? tmux可以切分窗口吗?alanfly 写了:参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
多窗口下面就是窗口分割设置啊。
To start a session with split windows (multiple panes), include the splitw command below the neww you would like to split; thus:
new -s SessionName -n WindowName Command
neww -n foo/bar foo
splitw -v -p 50 -t 0 bar
selectw -t 1
selectp -t 0
would open 2 windows, the second of which would be named foo/bar and would be split vertically in half (50%) with foo running above bar. Focus would be in window 2 (foo/bar), top pane (foo).
-
- 帖子: 233
- 注册时间: 2011-10-15 0:32
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
alanfly 写了:当然可以。csumck 写了:多谢,这个可以启动多个窗口,但是每个窗口怎么切分似乎不能做? tmux可以切分窗口吗?alanfly 写了:参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
多窗口下面就是窗口分割设置啊。To start a session with split windows (multiple panes), include the splitw command below the neww you would like to split; thus:
new -s SessionName -n WindowName Command
neww -n foo/bar foo
splitw -v -p 50 -t 0 bar
selectw -t 1
selectp -t 0
would open 2 windows, the second of which would be named foo/bar and would be split vertically in half (50%) with foo running above bar. Focus would be in window 2 (foo/bar), top pane (foo).
哦哦哦 看到了 太感谢了 我来学习一下,这个byobu好像就是用tmux做后端的,应该配置都是兼容的。
-
- 帖子: 233
- 注册时间: 2011-10-15 0:32
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
我在gnome connectin manager和secureCRT上都没办法使用tmux的快捷键啊,好像这些功能键的输入都被secureCRT截获掉了,请问你是怎么用的,是不是有其它的连接管理软件?alanfly 写了:参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
-
- 帖子: 334
- 注册时间: 2007-12-19 16:15
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
我都是在本地用的,不懂这个。csumck 写了:我在gnome connectin manager和secureCRT上都没办法使用tmux的快捷键啊,好像这些功能键的输入都被secureCRT截获掉了,请问你是怎么用的,是不是有其它的连接管理软件?alanfly 写了:参考archwiki:Tmux - ArchWiki-Session_initialization
然后用tmux attach启动即可。
- zhw2101024
- 帖子: 1849
- 注册时间: 2009-03-28 16:10
- 系统: Arch debian win7
- 联系:
Re: byobu能否保存当前屏幕切分方案,下次直接直接载入的,或其他替代方案
我都是直接用ssh命令的,其实熟练了也不耽误什么时间
为什么我的问题总是没有人回答?
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖
金钱、责任与荣誉:OpenSSL主席谈心脏出血
拥有丰富API接口和广泛程序支持的dropbox云同步,点此注册,开始就比别人多500兆,我的空间也会增加。谢啦
==========我的作品==========
我做的一个面向开发者的gnome-shell扩展,有js基础又想自己调整gnome-shell功能的可以尝试一下
gnome-shell扩展开发入门,gnome-shell扩展系统扫盲帖