created: 2025-09-30 23:25 tags: - terminal - 转义 aliases: Type: title: updated: 2025-09-30 23:30
参考文章:终端粘贴 ^[[200~ 问题及解决方法 | 潇然工作室
问题:粘贴内容会有 ^[[200~内容~ 如:我要粘贴这个内容
^[[200~内容~
解决方式 在 Shell 配置文件(如 ~/.bashrc、~/.zshrc)中加入:
~/.bashrc
~/.zshrc
bind 'set enable-bracketed-paste off' # Bash unset zle_bracketed_paste # Zsh