5

关于alacritty ssh远程服务器终端tmux 与zsh-autocomplete冲突问题

 1 year ago
source link: https://www.80shihua.com/archives/3247
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

关于alacritty ssh远程服务器终端tmux 与zsh-autocomplete冲突问题 – 梦回故里

梦回故里 梦回故里
梦回故里 人生三大错觉,我能反杀,下一发能出金,她喜欢我。
会写一辈子代码的程序员

alacrity 是非常小巧强大的终端工具,因为它本身并不提供多窗口管理功能,所以我需要使用 tmux 来处理多窗口,但是当我远程服务器的时候,我在 tmux 中输入按键的时候,却产生了多余的字母输出,经过排查,我发现是 zsh-zutocomplete 导致的,但是这个插件非常的好用,我并不想删除掉它,于是我又在网上进行了查询,发现原来也有人遇到过此问题,下面给出解决方案。

.zshrc 配置

只需要将终端添加环境变量 TERM=xterm-256color 即可。

个人建议添加一个 alias 即可,在.zshrc 中添加配置

alias tmux="TERM=xterm-256color tmux"

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK