TMUX: /home/kwa/.tmux.conf:1: 未知命令: activity-action

huangapple go评论100阅读模式
英文:

TMUX: /home/kwa/.tmux.conf:1: unknown command: activity-action

问题

我决定在我的openSUSE上安装tmux插件,按照教程https://github.com/tmux-plugins/tpm。

最初我没有~/.tmux.conf文件,所以我通过tmux show -g > ~/.tmux.conf手动创建了一个,然后添加了插件的配置,并决定重新启动。
我得到了以下错误:

/home/kwa/.tmux.conf:1: 未知命令:activity-action

我认为这是因为在ps aux | grep -w [t]mux中运行会话的缘故,所以决定使用kill -USR1 29750关闭它们。但是没有起作用。我完全关闭了服务器tmux kill-server - 但是没有起作用。而且并没有杀死所有会话。

请告诉我该怎么办,谢谢。

英文:

I decided to install tmux plugins on my opensuse following the tutorial https://github.com/tmux-plugins/tpm.

Initially I didn't have a ~/.tmux.conf file, so I created one manually via tmux show -g > ~/.tmux.conf, added the lines for plugins to it and decided to restart.
I got the following error:

/home/kwa/.tmux.conf:1: unknown command: activity-action

I thought it was because of running sessions in ps aux | grep -w [t]mux and decided to turn them off with kill -USR1 29750. Didn't work. I killed the server completely with tmux kill-server - didn't work. And not all sessions are killed.

Please tell me what to do, thanks

答案1

得分: 1

show命令显示选项列表。您不能将原始选项名称和值的列表用作.tmux.conf。在每一行之前加上set-option,例如:

set-option -g activity-action other

如果您一开始没有使用.tmux.conf,请创建一个新的空.tmux.conf文件,并将教程中的行放入其中:

# 插件列表
# ...

run '~/.tmux/plugins/tpm/tpm'
英文:

show command shows the list of options. You cannot use list of raw option names and values as .tmux.conf. Prepend each line with set-option, for example:

set-option -g activity-action other

If you haven't been using .tmux.conf to start with, create a new empty .tmux.conf and put there the lines from the tutorial:

# List of plugins
# ...

run '~/.tmux/plugins/tpm/tpm'

huangapple
  • 本文由 发表于 2023年8月10日 19:12:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76875179.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定