]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fixes for bashrc
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 9 Mar 2015 17:11:39 +0000 (14:11 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 9 Mar 2015 17:11:39 +0000 (14:11 -0300)
files/etc/bash.bashrc
files/etc/profile.d/prompt.sh

index 8faf82049414dd2ce53bb5826cac390208f70469..27686d696a70e8299d6f21d820eec5e213fcd550 100644 (file)
@@ -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
index 8247b1ae580f6c2c5f2e5fdd8fb63cf9a1900ab6..9e97ba27589ef3599a27bd4532c707a1a5f1989c 100644 (file)
@@ -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\]"