Skip to content

Instantly share code, notes, and snippets.

@polidog
Created May 8, 2017 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polidog/367bbed04276fd518a2d3ecedd3ad946 to your computer and use it in GitHub Desktop.
Save polidog/367bbed04276fd518a2d3ecedd3ad946 to your computer and use it in GitHub Desktop.
fish completion for symfony
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