bash-completion: source from bashrc, not profile

This commit is contained in:
lemmi 2016-01-09 08:34:33 +01:00
parent 5c707b4eff
commit 9988baedf3

View file

@ -1,7 +1,7 @@
# Template file for 'bash-completion' # Template file for 'bash-completion'
pkgname=bash-completion pkgname=bash-completion
version=2.1 version=2.1
revision=5 revision=6
noarch="yes" noarch="yes"
build_style=gnu-configure build_style=gnu-configure
makedepends="bash" makedepends="bash"
@ -21,4 +21,7 @@ post_install() {
done done
# remove nmcli provided by NetworkManager. # remove nmcli provided by NetworkManager.
rm -f ${DESTDIR}/usr/share/bash-completion/completions/nmcli rm -f ${DESTDIR}/usr/share/bash-completion/completions/nmcli
# move to bashrc.d to work after su
vmkdir /etc/bash/bashrc.d/
mv ${DESTDIR}/etc/profile.d/bash_completion.sh ${DESTDIR}/etc/bash/bashrc.d/bash_completion.sh
} }