将 tmux.conf 拆分为多个文件? [英] Split tmux.conf into multiple files?

查看:34
本文介绍了将 tmux.conf 拆分为多个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在计算机之间共享的通用 tmux 设置文件 (tmux.conf.common).我希望能够在我的 tmux.conf 中找到这个文件的来源.在 bash 中完成此操作的一种方法是让每台计算机的 .bashrc 源成为公共文件.有没有办法在 tmux 中做类似的事情?

I have a file of common tmux settings I share between computers (tmux.conf.common). I'd like to be able to source this file in my tmux.conf. A way to accomplish this in bash is to have the each computer's .bashrc source the common file. Is there a way to do something analogous in tmux?

推荐答案

.tmux.conf 格式有 source-file 指令,可以用同样的方式.使用 source 也可以.

The .tmux.conf format has the source-file directive which can be used the same way. Using source also works.

source-file /path/to/tmux.conf.common

这篇关于将 tmux.conf 拆分为多个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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