Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.35 KB

README.md

File metadata and controls

62 lines (48 loc) · 1.35 KB

Symfony and other bros console bash autocomplete

Supports

Requirements

bash-completion must be installed.

apt install bash-completion

Installation

make install

Add the following line to your ~/.bashrc:

# enable programmable completion features
if ! shopt -oq posix; then
    if [ -f /usr/share/bash-completion/bash_completion ]; then
        . /usr/share/bash-completion/bash_completion
    elif [ -f /etc/bash_completion ]; then
        . /etc/bash_completion
    fi
fi

Uninstall

make uninstall

Usage

Restart your bash and you should be able to autocomplete commands in a Symfony project console:

./bin/console [TAB]
console [TAB]
symfony [TAB]
./bin/security-checker
./bin/php-cs-fixer [TAB]
php-cs-fixer [TAB]
composer [TAB]
composer.phar [TAB]
deployer [TAB]
deployer.phar [TAB]
./artisan [TAB]