How to manually load zsh completion definition? #238
-
I want to load the completion from a non-canonical repo: Is there a way to manually load a file that contains the completion definitions? I tried to add this to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Add the following to your znap clone facebook/sapling
znap fpath _hg '< ~[facebook/sapling]/eden/scm/contrib/zsh_completion' |
Beta Was this translation helpful? Give feedback.
-
Can I request a mode/option of zsh-snap to let it not do anything about zsh's existing comp system? It seems to do some magic which I don't understand and it seems the "normal" way of using fpath/compdef/compdump does not work when using zsh-snap. This is a concern for me because other people's completion code (by calling compdef) written for "normal" zsh does not work for me. |
Beta Was this translation helpful? Give feedback.
Add the following to your
.zshrc
file:znap clone facebook/sapling znap fpath _hg '< ~[facebook/sapling]/eden/scm/contrib/zsh_completion'