擅长:python、mysql、java
<p>恐怕这是部分回答。在</p>
<p>你看到的问题和我的天哪,没有关系。这个问题是在<code>virtualenvwrapper.sh</code>的第539行介绍的。在</p>
<p>zsh中调用的子shell返回STDOUT上的最后一个工作目录,用控制字符包装。这很容易验证:</p>
<pre><code>(cd /) | cat -v
</code></pre>
<p>我在任何地方都找不到这个功能的文档。比如说最近在zs0.5中引入了它?在</p>
<p>在<code>virtualenvwrapper.sh</code>中的<code>virtualenvwrapper_show_workon_options()</code>函数中调用的<code>fmt</code>命令使返回的路径可见,从而导致输出混乱。在</p>
<h2>更新:</h2>
<p>在Evaleveflow下面的评论的提示下,我做了进一步的挖掘,发现真正的问题在于我改变OSX终端的代理图标的方式。事实上,事实证明,哦,我的zsh使用了完全相同的方法。在写这篇文章时,我已经在GitHub上提交了一个pull请求,以便在oh my zsh中修复这个问题。在</p>