From b3a0b2f9a87f0d96a85794d6c14e7f505907ab0c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 9 Mar 2015 14:11:39 -0300 Subject: Fixes for bashrc --- files/etc/bash.bashrc | 14 +++++++------- files/etc/profile.d/prompt.sh | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'files') diff --git a/files/etc/bash.bashrc b/files/etc/bash.bashrc index 8faf820..27686d6 100644 --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc @@ -32,13 +32,13 @@ fi #esac # enable bash completion in interactive shells -#if ! shopt -oq posix; then -# if [ -f /usr/share/bash-completion/bash_completion ]; then -# . /usr/share/bash-completion/bash_completion -# elif [ -f /etc/bash_completion ]; then -# . /etc/bash_completion -# fi -#fi +if ! shopt -oq posix; then + if [ -f /usr/share/bash-completion/bash_completion ]; then + . /usr/share/bash-completion/bash_completion + elif [ -f /etc/bash_completion ]; then + . /etc/bash_completion + fi +fi # if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then diff --git a/files/etc/profile.d/prompt.sh b/files/etc/profile.d/prompt.sh index 8247b1a..9e97ba2 100644 --- a/files/etc/profile.d/prompt.sh +++ b/files/etc/profile.d/prompt.sh @@ -4,7 +4,7 @@ # See http://www.debian-administration.org/article/Fancy_Bash_Prompts # -function command_prompt() { +command_prompt() { exit_status="$?" # colors COLOR_RED="\[\033[31m\]" -- cgit v1.2.3