Skip to content

voronkovich/symfony-complete.plugin.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Universal ZSH completion for Symfony applications

Tests

A zsh plugin for the symfony/console based applications (e.g. composer, bin/console, artisan, php-cs-fixer and etc.). This plugin supports autocompletion for subcommands (composer req) and GNU-style options (--help).

Commands autocompletion Options autocompletion

Installation

antigen bundle "voronkovich/symfony-complete.plugin.zsh@main"
zplug "voronkovich/symfony-complete.plugin.zsh"
git clone https://github.com/voronkovich/symfony-complete.plugin.zsh ~/.oh-my-zsh/custom/plugins/symfony-complete

Edit .zshrc to enable the plugin:

plugins=(... symfony-complete)

Manual

Clone this repo and add this into your .zshrc:

source path/to/cloned/repo/symfony-complete.plugin.zsh

Usage

Enable autocompletion in your .zshrc for all needed commands:

# Yes, it can complete symfony binary too :)
compdef _symfony_complete symfony
compdef _symfony_complete composer
compdef _symfony_complete console
compdef _symfony_complete artisan
compdef _symfony_complete phpstan
compdef _symfony_complete php-cs-fixer
compdef _symfony_complete phpspec

License

Copyright (c) Voronkovich Oleg. Distributed under the MIT.

About

Universal ZSH completion for Symfony applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages