본문 바로가기

Software/MacOS

[MacOS] zsh compinit: insecure directories, run compaudit for list.

MacOS 터미널에서 다음과 같은 경고가 뜨는 경우가 있어요.

참고로 글 작성일자 기준 OS 버전은 Catalina 10.15.3입니다.

 

zsh compinit: insecure directories, run compaudit for list.

 

해결을 위해선 우선 다음 명령어를 입력해주세요.

 

compinit

 

 

compaudit | xargs chmod g-w

 

이젠 안뜰거에요.

저게 먼지 궁금하신 분은 요기를 참고해주세요.

저도 이거 보고 했어요.

 

https://www.wezm.net/technical/2008/09/zsh-cygwin-and-insecure-directories

 

zsh, Cygwin and Insecure Directories - WezM.net by Wesley Moore

Published on Mon, 22 September 2008 In order to cope with having to use Windows at work I run Cygwin. My shell of choice is zsh. For whatever reason the Cygwin package of zsh installs with a series of directories that the zsh completion system deems to be

www.wezm.net

 

더 깊게 보고 싶은 분은 요기

 

http://zsh.sourceforge.net/Doc/Release/Completion-System.html

 

zsh: 20 Completion System

This function is used by two widgets, _bash_complete-word and _bash_list-choices. It exists to provide compatibility with completion bindings in bash. The last character of the binding determines what is completed: ‘!’, command names; ‘$’, environment vari

zsh.sourceforge.net

 

 

'Software > MacOS' 카테고리의 다른 글

맥 터미널 기록 삭제 (MacOS Terminal History)  (0) 2021.09.26