cli icon indicating copy to clipboard operation
cli copied to clipboard

correct way to enable autocompletion in zsh

Open varun06 opened this issue 3 years ago • 1 comments

I am adding auto completion to my cli app. I am following doc and set app.EnableBashCompletion = true and made changes to zsh shell config. But we I am trying to auto complete, I am getting these errors in shell.

fatal error: flag provided but not defined: -generate-bash-completion
fatal error: flag provided but not defined: -generate-bash-completion
fatal error: flag provided but not defined: -generate-bash-completion
\ \ \ alerts,\ a\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Alert\ operations

am I missing something?

varun06 avatar Feb 03 '22 22:02 varun06

@varun06 did you export PROG to name of your executable and source the zsh completion file ?

dearchap avatar Apr 25 '22 23:04 dearchap

@varun06 There was a bug in earlier versions which might have caused this. Can you try with latest release ?

dearchap avatar Oct 27 '22 12:10 dearchap