CARVIEW |
Select Language
HTTP/2 200
date: Wed, 15 Oct 2025 12:59:50 GMT
server: Fly/5d9a8537e (2025-10-13)
content-type: text/html; charset=utf-8
content-encoding: gzip
via: 2 fly.io, 2 fly.io
fly-request-id: 01K7KZ96FX5ZQ65W96QZS8HX8B-bom
Fixing "compinit: insecure directories" error | Simon Willison’s TILs
Fixing "compinit: insecure directories" error
Every time I opened a terminal on my new Mac running Catalina with zsh I got the following annoying error:
Last login: Fri Apr 24 17:50:41 on ttys004
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]? ncompinit: initialization aborted
Based on a tip in https://github.com/zsh-users/zsh-completions/issues/680 I fixed it by doing this:
% compaudit
There are insecure directories:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh
Then I ran these commands to fix it:
sudo chmod g-w /usr/local/share/zsh/site-functions
sudo chmod g-w /usr/local/share/zsh
Related
- zsh Customizing my zsh prompt - 2020-08-12
- macos Running pip install -e .[test] in zsh on macOS Catalina - 2020-04-21
- python macOS Catalina sort-of includes Python 3 - 2020-04-21
- macos Close terminal window on Ctrl+D for macOS - 2020-04-21
- macos Atuin for zsh shell history in SQLite - 2022-04-26
- macos Using fs_usage to see what files a process is using - 2023-06-15
- macos Installing Python on macOS with the official Python installer - 2022-02-28
- macos Get Skitch working on Catalina - 2020-04-21
- macos Seeing files opened by a process using opensnoop - 2022-04-26
- zsh Passing command arguments using heredoc syntax - 2022-07-07
Created 2020-04-26T09:49:58-07:00 · Edit