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