如何调试打印tmux设置的值?

问题描述 投票:0回答:1

例如,如果我想知道vim中textwidth的值,可以通过附加?来取消引用它。因此,我只需键入:set textwidth?

您如何在tmux中进行等效操作?

debugging tmux
1个回答
0
投票

要取消引用tmux设置或变量的值,可以运行以下终端命令:

tmux display-pane -p "The value of your setting or variable is #{<setting-or-variable-name>}"

有效命令示例:

tmux display-message -p "You have #{display-panes-time}ms to press a number key after running 'display-pane'"

注意:相应的命令提示符命令自然会删除tmux前缀,成为:

:display-pane #{<setting-or-variable-name>}
© www.soinside.com 2019 - 2024. All rights reserved.