During installation on macOS zsh shows the next warning:
...
INFO Step: Remove directory `/nix/temp-install-dir`
zsh compinit: insecure directories and files, run compaudit for list.
Ignore insecure directories and files and continue [y] or abort compinit [n]?
This requires user input to finish installation. It looks like in my case it is caused by interaction of Homebrew's completions setup and nix-installer's self-test.
During installation on macOS zsh shows the next warning:
This requires user input to finish installation. It looks like in my case it is caused by interaction of Homebrew's completions setup and nix-installer's self-test.
I have the next code in my
~/.zshrc
(inspired by Homebrew's documentation):Then, nix-installer runs the next command with
zsh
from theroot
user, probably with my$HOME
: https://github.com/DeterminateSystems/nix-installer/blob/dda36c4a22dc7a2985c345587edbc308a84131ed/src/self_test.rs#L110In this setup,
zsh
running asroot
reads my~/.zshrc
, adds to$FPATH
directory owned by my user and complains on it duringcompinit
.I can replicate the same warning message by running
sudo -s
, butsudo -sH
works normally.