composerAutocomplete bash function for autocomplete composer command line parameters as explained on stackoverflow Now you can add to your .bashrc file if [ -f /path/to/composer_completion ] ; then . /path/to/composer_completion fi