summaryrefslogtreecommitdiff
path: root/bash_completion
blob: b1a3d31ceba701af39e1e5c973092cbc66f36b4c (plain)
1
2
3
4
5
6
7
8
_etckeeper() { 
	local cur;
	COMPREPLY=();
	cur=${COMP_WORDS[COMP_CWORD]};
	COMPREPLY=( $( compgen -W '$(cd /etc/etckeeper/; for i in *.d/; do echo ${i%.d/}; done)' -- $cur ) );
}

complete -F _etckeeper etckeeper