DEV Community

Discussion on: Create a linux alias to list all available commands

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

How to do this with zsh?

Collapse
 
moopet profile image
Ben Sinclair

Zsh supports bash completion, if you tell it to:

autoload bashcompinit && bashcompinit

will tell it to load the compatibility "built-ins" which include compgen. It's not 100% compatible, but that should get you started.