compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish.

I write one by myself:

function compgen --description 'Print a list of documented fish commands'
    bash -c "compgen $argv"
end

But I think it better to use the native one if any.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.