summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2015-02-10 14:17:38 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-14 08:40:36 +0000
commit3c5285237dece0af594e74926e6f4f02ca81f715 (patch)
treeb7510dd51da104ce0a5392601c12e95b7685a436 /meta/recipes-devtools
parent9aba4bf2143c228d58aac06764f87ace5dd21d02 (diff)
downloadopenembedded-core-3c5285237dece0af594e74926e6f4f02ca81f715.tar.gz
openembedded-core-3c5285237dece0af594e74926e6f4f02ca81f715.tar.bz2
openembedded-core-3c5285237dece0af594e74926e6f4f02ca81f715.zip
git: add basic tab completion support
Trying to use git w/o tab completion is especially annoying if you are used to using it elsewhere -- "whatchanged" is simply too annoying to type out in full more than once. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/git/git.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index ace1790a02..ddb1ceed99 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -38,6 +38,8 @@ do_install () {
install -t ${D}/${mandir}/man1 ${WORKDIR}/man1/*
install -t ${D}/${mandir}/man5 ${WORKDIR}/man5/*
install -t ${D}/${mandir}/man7 ${WORKDIR}/man7/*
+ install -d ${D}/${datadir}/bash-completion/completions/
+ install -m 644 ${S}/contrib/completion/git-completion.bash ${D}/${datadir}/bash-completion/completions/git
}
perl_native_fixup () {
@@ -94,6 +96,10 @@ PERLTOOLS = " \
${datadir}/git-core/templates/hooks/pre-rebase.sample \
"
+# Basic tab completion support
+PACKAGES =+ "${PN}-bash-completion"
+FILES_${PN}-bash-completion = "${datadir}/bash-completion/completions/*"
+
# Git tools requiring perl
PACKAGES =+ "${PN}-perltools"
FILES_${PN}-perltools += " \