summaryrefslogblamecommitdiffstats
path: root/bash-completion/rev
blob: 619c5c4f6757180605e7ee5441caaf873f943cde (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

             
                           

                                       





                                               

                    
                                               








                                                                        
_rev_module()
{
	local cur prev OPTS
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	case $prev in
		'-h'|'--help'|'-V'|'--version')
			return 0
			;;
	esac
	case $cur in
		-*)
			OPTS="--version --help"
			COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
			return 0
			;;
	esac
	compopt -o filenames
	COMPREPLY=( $(compgen -f -- $cur) )
	return 0
}
complete -F _rev_module rev