oh-my-zshを更新したあと、下記のような警告が出るようになりました。
[oh-my-zsh] Insecure completion-dependent directories detected:
セキュアじゃないディレクトリを検出
oh-my-zshで警告がでる
zsh起動時に毎回こんな感じで警告がでちゃいます。
僕の環境ででるのは、windowsのcygwin上でだけです。
MacOSXではでてないです。
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxr-x+ 1 SYSTEM SYSTEM 0 5月 24 11:24 /cygdrive/c/Users/tyab
[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.
[oh-my-zsh] Insecure completion caches also detected:
-rw-rw-r--+ 1 tyab Domain Users 44999 5月 24 11:23 /cygdrive/c/Users/tyab/.zcompdump
[oh-my-zsh] Moving to "/cygdrive/c/Users/tyab/.zgen/robbyrussell/oh-my-zsh-master/cache/zcompdump-bad/"...
issueにも上がっているようで、
パーミッションが適切じゃない場合に警告として出るようです。
[oh-my-zsh] See the above list for directories with group or other writability.
上に書いてるGROUP/OTHERの書き込み権限を見てね
おそらく、groupとotherに書き込み権限があるとダメって事なのかな??
Github oh-my-zsh issues
- https://github.com/robbyrussell/oh-my-zsh/issues/6835
- https://github.com/robbyrussell/oh-my-zsh/issues/6461
解消するには
しかし、僕のCygwin環境では求めるパーミッションには設定出来なかったので、
issueにも提案されてる通り、警告を無視する設定にするしかなさそうです。
パーミッションを直して設定できる人はそちらの方が良い気がします。
下記の一文を、.zshrcに追記します。
export ZSH_DISABLE_COMPFIX=true
source oh-my-zsh.sh
の前に、上記の一文を追記しましょう。
(zgenであれば、source zgen.zsh
の前になります)