From 18592e5e0ba56075d813557ad96593b0e83b9336 Mon Sep 17 00:00:00 2001 From: root Samara Date: Wed, 10 Feb 2016 09:41:16 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .../etc/bash/bashrc.d/bash_completion.sh | 16 ++++++++++++++++ .../bash/bashrc.d/bash_completion.sh.dist.new | 0 2 files changed, 16 insertions(+) create mode 100644 config-archive/etc/bash/bashrc.d/bash_completion.sh rename bash/bashrc.d/._cfg0000_bash_completion.sh => config-archive/etc/bash/bashrc.d/bash_completion.sh.dist.new (100%) diff --git a/config-archive/etc/bash/bashrc.d/bash_completion.sh b/config-archive/etc/bash/bashrc.d/bash_completion.sh new file mode 100644 index 0000000..ae6756f --- /dev/null +++ b/config-archive/etc/bash/bashrc.d/bash_completion.sh @@ -0,0 +1,16 @@ +# 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. + BASH_COMPLETION_COMPAT_DIR=/usr/share/bash-completion/completions + . /usr/share/bash-completion/bash_completion + fi + fi + +fi diff --git a/bash/bashrc.d/._cfg0000_bash_completion.sh b/config-archive/etc/bash/bashrc.d/bash_completion.sh.dist.new similarity index 100% rename from bash/bashrc.d/._cfg0000_bash_completion.sh rename to config-archive/etc/bash/bashrc.d/bash_completion.sh.dist.new -- 2.39.5