Skip to content

source does not seem to support multiple files. #32

Answered by marlonrichert
jetersen asked this question in Q&A
Discussion options

You must be logged in to vote

znap source asdf asdf.sh works fine for me.

completions/_asdf is a function. You shouldn't source 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 )

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by marlonrichert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #19 on February 05, 2021 20:00.