Created
May 8, 2017 12:11
-
-
Save polidog/367bbed04276fd518a2d3ecedd3ad946 to your computer and use it in GitHub Desktop.
fish completion for symfony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _symfony_console | |
php (find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1) | |
end | |
function _symfony_get_command_list | |
_symfony_console --no-ansi | sed "1,/Available commands/d" | awk '/^ ?[^ ]+ / { print $1 }' | |
end | |
complete -f -c "console" -a "(_symfony_get_command_list)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment