Complete command options with oh-my-zsh

Is there a way to make zsh complete command parameters (just like a fish does). For example, when I type ls -- and use TAB, it displays a list of all ls options.

I know that I can use a fish shell for this, and I know that the fish shell is amazing, but there are a lot of missing functionality in the fish shell. Therefore, I want this parameter to end in zsh.

+5
source share
2 answers

Try using a single hyphen, for example ls - . All built-in commands work fine. Btw for the custom autostart plugin oh-my-zsh, it depends on the configuration of the plugin.

+3
source

oh-my-zsh has over 200 plugins for different teams. But, unfortunately, automatic improvements are all done manually. Thus, for each command there will never be an automatic function.

+2
source

All Articles