We don't have the magento command installed globally on most of our servers, so we typically call the command with bin/magento from the web root.
Adding bin/magento to the list passed to complete at the end of the file fixes the issue for us.
complete -o default -F _magento2 magento bin/magento
We don't have the
magentocommand installed globally on most of our servers, so we typically call the command withbin/magentofrom the web root.Adding
bin/magentoto the list passed tocompleteat the end of the file fixes the issue for us.