mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Do not use -i (insecure) with compinit
This was added in 99d72ca, to work around warnings with `sudo -s`.
`sudo -s` seems to cause a lot of other issues anyway, where files get
owned by root etc.
I think it's better to be safe by default.
From zsh's man page:
For security reasons compinit also checks if the completion
system would use files not owned by root or by the cur‐ rent
user, or files in directories that are world- or group-writable
or that are not owned by root or by the cur‐ rent user. If
such files or directories are found, compinit will ask if the
completion system should really be used. To avoid these tests
and make all files found be used without asking, use the
option -u, and to make compinit silently ignore all
insecure files and directories use the option -i. This security
check is skipped entirely when the -C option is given.
This commit is contained in:
parent
c78277fd8b
commit
357dd75072
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ fi
|
|||
|
||||
# Load and run compinit
|
||||
autoload -U compinit
|
||||
compinit -i -d "${ZSH_COMPDUMP}"
|
||||
compinit -d "${ZSH_COMPDUMP}"
|
||||
|
||||
# Load all of the plugins that were defined in ~/.zshrc
|
||||
for plugin ($plugins); do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue