1

I have a simple command with a couple sub commands which I would like to create a zsh code completion script for. I have read many web sites, but very confused.

My command (and sub commands) are:

stx ls
stx clean
stx start
stx stop

How can I create a code snippet to include in my .zshrc file to do tab completion? I really appreciate your help. I know that SO is not a code writing service, but I have done my research and not getting any closer.

References

Here are some of the places I have read.

Hai Vu
  • 37,849
  • 11
  • 66
  • 93

0 Answers0