ubuntu - zsh中的有线字符

标签 ubuntu zsh

我对 有疑问zsh 在非英语的命令行
但是在输入键后语言显示正确的单词,在 OSX 上尝试也有同样的问题。

~   
❯ สว<0e31>สด<0e35>
สวัสดี
zsh: command not found: สวัสดี

我正在检查语言环境,一切都是 utf8
locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

并检查是否有任何字体,它有同样的问题。
我用 zsh 版本 5.0.2 和 哦,我的-zh

最佳答案

你可以做setopt combiningchars .

COMBINING_CHARS

Assume that the terminal displays combining characters correctly. Specifically, if a base alphanumeric character is followed by one or more zero-width punctuation characters, assume that the zero-width characters will be displayed as modifications to the base character within the same width. Not all terminals handle this. If this option is not set, zero-width characters are displayed separately with special mark-up.

-- zshoptions(1) COMBINING_CHARS

关于ubuntu - zsh中的有线字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28734396/

相关文章:

bash - 使用自定义作为命令行参数运行新的 zsh 和 bash shell

linux - pop_os : how to create command-line launcher for intellij

zsh - 鱼函数prompt_pwd但在zsh中?

python - 在不构建项目的情况下安装 openCV

c - 为什么在 C 语言的 Ubuntu Linux 上 pango_layout_get_pixel_size 略有错误

emacs - Emacs 中的 zsh 输出垃圾字符

zsh - ZSH 别名中的参数

linux - 自定义 zsh 自动完成

ruby-on-rails - RubyMine 使用不正确/不同的 Ruby 版本 - Ubuntu

postgresql - ubuntu 14.10 和 postgres 9.4 如何运行 pg_controldata