Skip to content

Instantly share code, notes, and snippets.

View fredipevcin's full-sized avatar

Fredi Pevcin fredipevcin

  • Ljubljana, Slovenia
View GitHub Profile
@fredipevcin
fredipevcin / .symfony_completion
Created September 25, 2012 09:17
Symfony2 console autocomplete
# SYMFONY
_symfony() {
local cur cmd
COMPREPLY=()
cur="${COMP_WORDS[${COMP_CWORD}]}"
command="${COMP_WORDS[1]}"
if [ ${COMP_CWORD} == 1 ]; then
cmds="$(symfony list --no-ansi | grep -e '^\s\s[a-z]' | awk '{ print $1}')"