Sidahmed
Sidahmed

Reputation: 812

complete command's parameters with oh-my-zsh

Is there a way to make zsh complete parameters of commands (just like the fish shell do). For example, when I type ls -- and use TAB it will pop up a list of all ls parameters.

I know that I can use fish shell for this, and I know that fish shell is amazing, but there is a lot of missing functionalities in the fish shell. That's why I am looking to bring this parameter completion in zsh.

Upvotes: 8

Views: 3761

Answers (2)

Rafiqul Hasan
Rafiqul Hasan

Reputation: 568

Try with single hyphen, like ls -. All built in commands are working fine. Btw for custom oh-my-zsh plugin autocompletion, it depends on plugin configuration.

Upvotes: 7

Daniel Käfer
Daniel Käfer

Reputation: 4714

oh-my-zsh has over 200 plugins for different commands. But unfortunately the auto completions are all hand made. So there will be never auto complete function for every command.

Upvotes: 2

Related Questions