英文:
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'
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论