Development

BashCompletion (diff)

You must first sign up to be able to contribute.

Changes between Version 20 and Version 21 of BashCompletion

Show
Ignore:
Author:
subzero2000 (IP: 68.52.236.40)
Timestamp:
06/04/08 07:34:46 (10 years ago)
Comment:

Minor update

Legend:

Unmodified
Added
Removed
Modified
  • BashCompletion

    v20 v21  
    8484'''Update''' 
    8585 
    86 I'd like to propose an updated version of the bash_completion script for symfony that supports both symfony 1.0 and symfony 1.1, as well as properly tab completing symfony commands regardless of whether you are using a version of symfony installed on your system via PEAR or a similar mechanism, or symfony in a frozen installation (As ususal, YMMV. This completion script works fine for me using symfony 1.0.16 installed via PEAR and a sf_sandbox using symfony 1.1.0-RC1). 
     86I'd like to propose an updated version of the bash_completion script for symfony that supports both symfony 1.0 and symfony 1.1, as well as properly tab completing symfony commands regardless of whether you are using a version of symfony installed on your system via PEAR or a similar mechanism, or symfony in a frozen installation (As ususal, YMMV. This completion script works fine for me using symfony 1.0.16 installed via PEAR and a sf_sandbox using symfony 1.1.0-RC1. Also, this will most probably not work correctly if you attempt to use this with a version of symfony less than 1.0). 
    8787 
    8888Without further ado... 
    9393{             
    9494  local cur prev action 
    95   COMREPLY=() 
     95  COMPREPLY=() 
    9696  cur=${COMP_WORDS[COMP_CWORD]} 
    9797  prev=${COMP_WORDS[COMP_CWORD-1]} 
    129129 
    130130      case "$SYMFONY_VERSION" in 
     131        0.*) 
     132          # Versions less than 1.0 are not supported. 
     133          COMPREPLY=() 
     134        ;; 
     135 
    131136        "1.0") 
    132137          COMPREPLY=( $( compgen -W "$( $prev -T | awk '/^  /' | cut -d ' ' -f 3 )" -- $cur ) ) 
    139144 
    140145IFS=$'\n' 
    141 for line in $( $prev -T); do 
     146for line in $( $prev -T ); do 
    142147  if [ $line != 'Available tasks:' ]; then 
    143148    if [ ${line:0:2} == '  ' ]; then