diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-03-09 14:11:39 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-03-09 14:11:39 -0300 |
commit | b3a0b2f9a87f0d96a85794d6c14e7f505907ab0c (patch) | |
tree | b0cac38fc83af93eb94d9767b66bc6590821679b /files | |
parent | 3411ba1b276e2b161d718fe3ebd4770515d9965d (diff) | |
download | puppet-nodo-b3a0b2f9a87f0d96a85794d6c14e7f505907ab0c.tar.gz puppet-nodo-b3a0b2f9a87f0d96a85794d6c14e7f505907ab0c.tar.bz2 |
Fixes for bashrc
Diffstat (limited to 'files')
-rw-r--r-- | files/etc/bash.bashrc | 14 | ||||
-rw-r--r-- | files/etc/profile.d/prompt.sh | 2 |
2 files changed, 8 insertions, 8 deletions
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\]" |