#!/bin/bash _mkarchroot() { local cur COMPREPLY=() _get_comp_words_by_ref cur case $cur in -*) COMPREPLY=( $( compgen -W '-C -M -c -f -h -n -r -u' -- "$cur" ) ) ;; *) _filedir return 0 ;; esac true } && complete -F _mkarchroot archroot # ex:et ts=2 sw=2 ft=sh