From: root Date: Tue, 9 Feb 2016 16:50:41 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=9b02cb8f9729310e2fcb287df102e0be71a92b40;p=config%2Fuhu1%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/.etckeeper b/.etckeeper index 42bdf76..7654679 100755 --- a/.etckeeper +++ b/.etckeeper @@ -137,6 +137,7 @@ maybe chmod 0755 'bash' maybe chmod 0644 'bash/bash_logout' maybe chmod 0644 'bash/bashrc' maybe chmod 0755 'bash/bashrc.d' +maybe chmod 0644 'bash/bashrc.d/._cfg0000_bash_completion.sh' maybe chmod 0644 'bash/bashrc.d/.keep_app-shells_bash-0' maybe chmod 0644 'bash/bashrc.d/bash_completion.sh' maybe chmod 0755 'bash_completion.d' diff --git a/bash/bashrc.d/._cfg0000_bash_completion.sh b/bash/bashrc.d/._cfg0000_bash_completion.sh new file mode 100644 index 0000000..bb0fdb6 --- /dev/null +++ b/bash/bashrc.d/._cfg0000_bash_completion.sh @@ -0,0 +1,15 @@ +# Check for interactive bash and that we haven't already been sourced. +if [ -n "$BASH_VERSION" -a -n "$PS1" -a -z "$BASH_COMPLETION_COMPAT_DIR" ]; then + + # Check for recent enough version of bash. + if [ ${BASH_VERSINFO[0]} -gt 4 ] || \ + [ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then + [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \ + . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" + if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then + # Source completion code. + . /usr/share/bash-completion/bash_completion + fi + fi + +fi