将当前 tmux 会话转换为配置文件 [英] Convert current tmux session to configuration file

查看:30
本文介绍了将当前 tmux 会话转换为配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个带有 6 个窗口的 tmux 会话,总共大约有 14 个窗格.是否有命令方式将此会话保存到 tmux 配置文件?

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.

推荐答案

tmux 默认不提供任何方式来保存/恢复会话/客户端.但是有 3rd 方工具可以实现它.

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

例如,我写了 retmux 来完全满足您的要求.

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

https://github.com/sk1418/retmux

  • 会话:带有名称、终端大小
  • windows:带有名称、顺序、窗格拆分和拆分布局
  • 窗格:具有相同外观的路径和内容(最多 100000 行历史内容)(ANSI 转义)
  • 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)

这篇关于将当前 tmux 会话转换为配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆