2016年5月10日 星期二

升級oh-my-zsh後,執行sudo su - 會出現compdef: unknown....

compdef: unknown command or service: git 
compdef: unknown command or service: grep 
compdef: unknown command or service: git
 
原因:權限問題
解法:
#This will perform chmod g-w for each file returned by compaudit to remove write access for group compaudit | xargs -I % chmod g-w "%" #This will perform chown to current user (Windows and Linux) for each file returned by compaudit compaudit | xargs -I % chown $USER "%" #Remove all dump files (which normally speed up initialization) rm ~/.zcompdump* #Regenerate completions file compinit

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote