Eva*_*oll 2 zsh escape-characters oh-my-zsh kitty
如果我有字符串并用CTRL+ SHIFT+复制它C
https://test.invalid/?foo=bar()&baz=$quz{}
Run Code Online (Sandbox Code Playgroud)
我将其粘贴到终端中,我看到以下内容,
https://test.invalid/\?foo\=bar\(\)\&baz\=$quz\{\}
Run Code Online (Sandbox Code Playgroud)
但是,我不希望?
、(
、)
、 {
、}
和=
转义,因为我正在使用粘贴字符串来填写卷曲,
curl "
CTRL+ SHIFT+C"
如何禁用此字符转义行为?
问题不在于小猫。如果你运行/bin/sh
并粘贴,你可以测试它。就我而言,问题实际上是 zsh。特别是 oh-my-zsh 在~/.zshrc
conf中有这个,
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true
Run Code Online (Sandbox Code Playgroud)
取消注释解决了我的问题。
归档时间: |
|
查看次数: |
851 次 |
最近记录: |