Blame view

repos/robbyrussell/oh-my-zsh/plugins/symfony2/symfony2.plugin.zsh 746 Bytes
093a6c34b   mj   Squashed 'repos/r...
1
2
3
4
5
6
7
  # Symfony2 basic command completion
  
  _symfony_console () {
    echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
  }
  
  _symfony2_get_command_list () {
ed37aae5b   mj   Squashed 'repos/r...
8
     `_symfony_console` --no-ansi | sed "1,/Available commands/d" | awk '/^  ?[^ ]+ / { print $1 }'
093a6c34b   mj   Squashed 'repos/r...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  }
  
  _symfony2 () {
     compadd `_symfony2_get_command_list`
  }
  
  compdef _symfony2 '`_symfony_console`'
  compdef _symfony2 'app/console'
  compdef _symfony2 'bin/console'
  compdef _symfony2 sf
  
  #Alias
  alias sf='`_symfony_console`'
  alias sfcl='sf cache:clear'
56a5793ce   mj   Squashed 'repos/r...
23
  alias sfsr='sf server:run -vvv'
093a6c34b   mj   Squashed 'repos/r...
24
  alias sfcw='sf cache:warmup'
d9bebbb3c   mj   Squashed 'repos/r...
25
26
  alias sfroute='sf debug:router'
  alias sfcontainer='sf debug:container'
093a6c34b   mj   Squashed 'repos/r...
27
  alias sfgb='sf generate:bundle'
46fe1183a   mj   Squashed 'repos/r...
28
29
  alias sfdev='sf --env=dev'
  alias sfprod='sf --env=prod'