completion.bash
changeset 6 c853cc971b78
child 8 5e9d46863588
equal deleted inserted replaced
5:6cb38b11a354 6:c853cc971b78
       
     1 # $Id$
       
     2 # $URL$
       
     3 # © 2005 Heiko Schlittermann
       
     4 complete -F _ma ma
       
     5 function _ma() {
       
     6     local cur=${COMP_WORDS[COMP_CWORD]}
       
     7     local pre=${COMP_WORDS[COMP_CWORD - 1]}
       
     8     case "$COMP_CWORD" in
       
     9     1) COMPREPLY=($(compgen -W "account alias shared" -- $cur));;
       
    10     2) COMPREPLY=($(compgen -W "--add --del --list --mod" -- $cur));;
       
    11     esac
       
    12 }
       
    13 
       
    14 # vim:sts=4 sw=4 aw ai sm: