重复哦我的Zsh brew插件警告


1

每次我在我的一台机器上打开一个新的shell时,我都会看到这个警告:

 Oh My Zsh brew plugin:

  With the advent of their 1.0 release, Homebrew has decided to bundle
  the zsh completion as part of the brew installation, so we no longer
  ship it with the brew plugin; now it only has brew aliases.

  If you find that brew completion no longer works, make sure you have
  your Homebrew installation fully up to date.

  You will only see this message once.

消息一直在回来,即使它威胁到“你只能看到这个消息一次”。

关于如何“修复”这个的想法?它 似乎被触发了 通过 mkdir 别名?!?


2
在哪里 zsh -x (或者可能 zsh -x -l )显示正在运行的代码?
thrig

不知道的 -x 旗。这让我成了罪魁祸首,特别指出了这个罪魁祸首 brew 我的插件 zshrc 文件。删除它,现在一切都很好。我会在几天内删除这篇文章(如果我记得的话),除非你想草拟答案,在这种情况下我会给你一个金星。谢谢!
Meltemi

Answers:


1

zsh -x (或者可能 zsh -x -l 如果代码来自rc文件只读登录会话期间)启用跟踪;然后可以使用此详细输出来查找消息的确切位置。

% zsh -x 2>searchthroughthis.txt
% exit
% less -p advent searchthroughthis.txt
...
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.