Skip to content

qbbr/symfony-bash-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

Releases

No releases published

Packages

No packages published