Skip to content

Instantly share code, notes, and snippets.

@wrboyce
Created March 14, 2013 17:15
Show Gist options
  • Select an option

  • Save wrboyce/5163222 to your computer and use it in GitHub Desktop.

Select an option

Save wrboyce/5163222 to your computer and use it in GitHub Desktop.
unset -f compdef ## unset the above defined function which populates __deferred_compdefs
autoload -U compinit
compinit -i
local cd
for cd in ${__deferred_compdefs}; do
compdef ${cd} ## process the actual compdef -- this doesn't work, a cheap fix seems to be eval "compdef ${cd}"
done
unset __deferred_compdefs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment