Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when i update oh-my-zsh i got a error.how do i fix it?

Tags:

shell

[oh-my-zsh] Insecure completion-dependent directories detected: 
drwxr-xr-x  6 501  admin  204  3  2  2016 /usr/local/share/zsh 
drwxr-xr-x  8 501  admin  272 10 10  2016 /usr/local/share/zsh/site-functions 
[oh-my-zsh] For safety, completions will be disabled until you manually fix all 
[oh-my-zsh] insecure directory permissions and ownership and restart oh-my-zsh. 
[oh-my-zsh] See the above list for directories with group or other writability.

like image 360
Hongyan Fan Avatar asked May 24 '18 01:05

Hongyan Fan


People also ask

How do I automatically update my oh my zsh?

Add autoupdate to the plugins=() list in your ~/. zshrc file and you're done. The updates will be executed automatically as soon as the oh-my-zsh updater is started. Note that this will autoupdate both plugins and also themes found in the $ZSH_CUSTOM folder.

Is oh my zsh a terminal?

All in all, Oh My Zsh will help make using the terminal a comfortable experience. There are a lot of beautiful themes to choose from, as well as a ton of useful plugins that are made to boost your productivity.


1 Answers

Try to change .oh-my-zsh/ permissions:

➜ sudo chmod -R 755 ~/.oh-my-zsh

If it doesn't help, try:

➜ chmod 755 /usr/local/share/zsh
➜ chmod 755 /usr/local/share/zsh/site-functions
like image 77
Welyngton Dal Prá Avatar answered Oct 21 '22 08:10

Welyngton Dal Prá