Debian Codegraph @

debian/bash-completion

raw
1 ## Bash completion for the Android SDK tools.
2 #
3 # Written by Hans-Christoph Steiner, 2012
4 #
5 # This work is too trival to have any copyright, I hereby wave any copyright
6 # and release it into the public domain.
7
8 function _dphys_swapfile()
9 {
10 local cur prev opts
11 COMPREPLY=()
12 cur="${COMP_WORDS[COMP_CWORD]}"
13 prev="${COMP_WORDS[COMP_CWORD-1]}"
14 opts="setup swapon swapoff uninstall"
15
16 if [ ${COMP_CWORD} -eq 1 ]; then
17 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
18 return 0
19 else
20 COMPREPLY=""
21 return 0
22 fi
23 }
24 complete -o default -F _dphys_swapfile dphys-swapfile