This one is a quick note on zsh. I have recently decided to download this awesome tool to make my terminal look great (and get some useful plugins as well). I mean, together with the Dracula theme, it’s just ๐๐๐
So, when I was getting this error on my screen, things were not so appealing to me…
[oh-my-zsh] Insecure completion-dependent directories detected: (...) [oh-my-zsh] For safety, we will not load completions from these directories until [oh-my-zsh] you fix their permissions and ownership and restart zsh. [oh-my-zsh] See the above list for directories with group or other writability. [oh-my-zsh] If the above didn't help or you want to skip the verification of [oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to [oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.
Naturally, I googled this error and tried every highest rated answer crossing my way. But none worked!
So. Let’s change the approach, let’s do what the message says. Add a line before sourcing zsh…
ZSH_DISABLE_COMPFIX ="true" source $ZSH/oh-my-zsh.sh ...
Well, that didn’t work. Do you know why? ๐ค
This one did the trick though…
ZSH_DISABLE_COMPFIX="true" source $ZSH/oh-my-zsh.sh ...
Can you spot the difference? A whitespace after the ZSH_DISABLE_COMPFIX keyword! A whitespace! ๐คฆ
Kids, don’t forget whitespaces are important in bash.