1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

"zsh compinit: insecure directories, run compaudit for list."が表示されたので対処した

Posted at

経緯

  • 2025年の春先にCursorを入れたこときっかけで色々設定をいじったら、macターミナルを立ち上げるたびに表題のメッセージが出るようになってしまった
  • 動作には問題ないようだが、いちいちy/nで回答を求められて鬱陶しいし原因もわからなくて気持ち悪いので、解決しようと日曜の午後に検索

みつけたもの

すでに同じ現象に悩んでいる方がいらしたようで、たくさん記事がヒット。
Googleの検索トップに上がってきたzenn記事がわかりやすかったので、こちらを参考に対処。

さらにみつけたもの

上記記事の対応でcompinit/compauditのメッセージは出なくなったが、代わりにcompinit:527: no such file or directory: /usr/local/share/zsh/site-functions/_brew_caskというエラーが出るようになったので、さらに検索してStackOverflowを見つける。

brew cleanup を実行すればよいとあるので、実行したところ色々とファイル等の削除が走って、解決した。

感想

なんでも生成AIに聞けばいいと言われるようになって久しいが、問題がわかってるならまだまだ従来の検索も捨てたもんじゃないですね。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?