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