_etckeeper() { 
	local cur;
	COMPREPLY=();
	cur=${COMP_WORDS[COMP_CWORD]};
	COMPREPLY=( $( compgen -W '$(cd /usr/pkg/etc/etckeeper; for i in *.d/; do echo ${i%.d/}; done)' -- $cur ) );
}

complete -F _etckeeper etckeeper
