Skip to content

Instantly share code, notes, and snippets.

@rbellamy
Last active November 26, 2015 22:04
Show Gist options
  • Save rbellamy/4878fa9c5f7c2805384b to your computer and use it in GitHub Desktop.
Save rbellamy/4878fa9c5f7c2805384b to your computer and use it in GitHub Desktop.
complete:13: command not found: compdef
#from https://github.com/robbyrussell/oh-my-zsh/issues/630#issuecomment-70291622
#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 ~/.config/zsh/.zcompdump*
#Regenerate completions file
compinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment