equal
deleted
inserted
replaced
4 complete -F _ma ma |
4 complete -F _ma ma |
5 function _ma() { |
5 function _ma() { |
6 local cur=${COMP_WORDS[COMP_CWORD]} |
6 local cur=${COMP_WORDS[COMP_CWORD]} |
7 local pre=${COMP_WORDS[COMP_CWORD - 1]} |
7 local pre=${COMP_WORDS[COMP_CWORD - 1]} |
8 case "$COMP_CWORD" in |
8 case "$COMP_CWORD" in |
9 1) COMPREPLY=($(compgen -W "account alias shared" -- $cur));; |
9 1) COMPREPLY=($(compgen -W "account alias group shared" -- $cur));; |
10 2) COMPREPLY=($(compgen -W "--add --del --list --mod" -- $cur));; |
10 2) COMPREPLY=($(compgen -W "--add --del --list --modify" -- $cur));; |
11 esac |
11 esac |
12 } |
12 } |
13 |
13 |
14 # vim:sts=4 sw=4 aw ai sm: |
14 # vim:sts=4 sw=4 aw ai sm: |