You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I'm missing something with autocomplete suggestions. I want it to suggest the names "steve" and "john" (for the command below) but all it does is suggest files in the directory. Am I missing something? I feel like I've tried everything - and I can't get it to suggest a single thing.
On mac zsh I run go build . followed by ./program hello s[TAB] or ./program hello j[TAB]. If I type ./program hello [TAB] it suggests the files in the directory. Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi @johnnyjamil. You need to first get the shell completion script setup. You can look at how to do this through the help: ./program completion zsh -h.
To get you going quickly, here is what you need to do to setup in the current shell:
source <(./program completion zsh)
compdef _program program
If your shell completion wasn't setup at all, you need to do:
Thank you @marckhouzam. Is there no way to do this out of the box? So a user installs the package via homebrew and the autocomplete works on their shell straight away.
I feel like I'm missing something with autocomplete suggestions. I want it to suggest the names "steve" and "john" (for the command below) but all it does is suggest files in the directory. Am I missing something? I feel like I've tried everything - and I can't get it to suggest a single thing.
On mac zsh I run
go build .
followed by./program hello s[TAB]
or./program hello j[TAB]
. If I type./program hello [TAB]
it suggests the files in the directory. Any help is greatly appreciated.The text was updated successfully, but these errors were encountered: