c4422bff9c
etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into apt (and other package managers including yum and pacman-g2) to automatically commit changes made to /etc during package upgrades. It tracks file metadata that revison control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It's quite modular and configurable, while also being simple to use if you understand the basics of working with revision control.
15 lines
514 B
Text
15 lines
514 B
Text
$NetBSD: patch-bash__completion,v 1.1 2013/05/27 08:36:00 sbd Exp $
|
|
|
|
Add SUBST_VARS token.
|
|
|
|
--- bash_completion.orig 2011-02-22 20:19:36.000000000 +0000
|
|
+++ bash_completion
|
|
@@ -2,7 +2,7 @@ _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 ) );
|
|
+ COMPREPLY=( $( compgen -W '$(cd @PKG_SYSCONFDIR@; for i in *.d/; do echo ${i%.d/}; done)' -- $cur ) );
|
|
}
|
|
|
|
complete -F _etckeeper etckeeper
|