Created
March 14, 2013 17:15
-
-
Save wrboyce/5163222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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