解决在 VPS 遇到有毒的 Zsh
debian吧
全部回复
仅看楼主
level 10
DCTMEI 楼主
当窝操控一台装配 CentOS 并使用 Zsh 的 VPS 时
无法正常使用退格键以及方向键,全部光标右移
并且“ssh -v xx”的 debug 显示了这样一条信息
'rxvt-unicode-256color': unknown terminal type.
2017年07月05日 05点07分 1
level 10
DCTMEI 楼主
参考 h ttps://github.com/Fourdee/DietPi/issues/955[滑稽][OK],这里还挂了两个参考,所以实际上是三个参考[胜利][滑稽]
2017年07月05日 05点07分 2
level 10
DCTMEI 楼主
在本机上如“~/.zshrc”写入变量
export TERM="rxvt-256color"
此举成功[滑稽]
2017年07月05日 05点07分 3
level 10
DCTMEI 楼主
还有另一种更吼的方法,无须改变本地环境变量的那种[笑眼]
连接 VPS
$ mkdir -p ~/.terminfo/r
退出 VPS,本机执行
$ scp /usr/share/terminfo/r/rxvt-unicode-256color [email protected]:.terminfo/r
[滑稽]
2017年07月05日 05点07分 4
level 10
DCTMEI 楼主
CentOS 与 Debian 对比
2017年07月05日 05点07分 5
level 10
DCTMEI 楼主
CentOS 木有 rxvt-unicode-256color[阴险]
那应当是阔以直接
$ scp /usr/share/terminfo/r/rxvt-unicode-256color [email protected]:/usr/share/terminfo/r
[滑稽]
2017年07月05日 05点07分 6
不是“阔以”,而是“可以”
2017年08月01日 05点08分
1