PageRenderTime 56ms CodeModel.GetById 52ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion.d/etckeeper

http://github.com/brinkman83/bashrc
#! | 8 lines | 7 code | 1 blank | 0 comment | 0 complexity | 1c760f04c165b00ab34e88c19f69d9cc MD5 | raw file
1_etckeeper() { 
2	local cur;
3	COMPREPLY=();
4	cur=${COMP_WORDS[COMP_CWORD]};
5	COMPREPLY=( $( compgen -W '$(cd /etc/etckeeper/; for i in *.d/; do echo ${i%.d/}; done)' -- $cur ) );
6}
7
8complete -F _etckeeper etckeeper