小编Ale*_*all的帖子

使用 zprezto 粘贴到 zsh 时的额外字符

  • 操作系统:Arch Linux
  • 桌面环境:GNOME3
  • 外壳:zsh(带 zprezto)

例如,当我将文本粘贴https://superuser.com/questions/ask到我的终端时,我得到以下文本:

^[[200~https://superuser.com/questions/ask~

这些额外的字符仅在加载 zprezto 时出现。我猜 zprezto 中有一个设置可以做到这一点,但我无法弄清楚是哪个设置,以便我可以将其关闭。

有人知道吗?

.zprofile:

#
# Executes commands at login pre-zshrc.
#
# Authors:
#   Sorin Ionescu <sorin.ionescu@gmail.com>
#

#
# Browser
#

if [[ "$OSTYPE" == darwin* ]]; then
  export BROWSER='open'
fi

#
# Editors
#

export EDITOR='nano'
export VISUAL='nano'
export PAGER='less'

#
# Language
#

if [[ -z "$LANG" ]]; then
  export LANG='en_US.UTF-8'
fi

#
# Paths
#

# Ensure path arrays do not contain duplicates. …
Run Code Online (Sandbox Code Playgroud)

zsh

4
推荐指数
1
解决办法
1376
查看次数

标签 统计

zsh ×1