Convert current tmux session to configuration file

我与影子孤独终老i 提交于 2019-12-06 12:09:19

问题


I'm running a tmux session with 6 windows, about 14 panes in all. Is there a command way to save this session to a tmux configuration file?

I'm not worried about running any of the programs, but hopefully I'll be able to keep the session name, window names, and pane folder locations.


回答1:


tmux by default doesn't provide any way to save/restore sessions/clients. But there are 3rd party tools to achieve it.

For example, I wrote retmux to do exactly what you are asking for.

https://github.com/sk1418/retmux

What can be backed up/restored?

  • sessions : with names, terminal-size
  • windows : with name, order, pane split and split layout
  • panes : with path and content(up to 100000 line history content) with same look and feel (ANSI escapes)


来源:https://stackoverflow.com/questions/45633746/convert-current-tmux-session-to-configuration-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!