source does not seem to support multiple files. #32
-
logically I wanted to specify what to source from repo, so was hoping to do
which does not work. however
does work |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I’m not sure what you mean. Can you please give me a concrete example that I can test with? Which plugin/repo are trying to use and what are you trying to do with it? |
Beta Was this translation helpful? Give feedback.
-
I am attempting to source https://github.com/asdf-vm/asdf 's |
Beta Was this translation helpful? Give feedback.
-
Instead, for fpath+=( ~[asdf-vm/asdf]/completions ) |
Beta Was this translation helpful? Give feedback.
znap source asdf asdf.sh
works fine for me.completions/_asdf
is a function. You shouldn'tsource
functions in Zsh (or any other shell I know of, for that matter); it won't work.source
is for running scripts only.Instead, for
_asdf
to be available to Zsh's completion system, you need to add its parent dir to your$fpath
, like this:fpath+=( ~[asdf-vm/asdf]/completions )