]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Smaller PS1
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 15 Feb 2010 13:31:01 +0000 (11:31 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 15 Feb 2010 13:31:01 +0000 (11:31 -0200)
files/etc/profile

index 512e871653e2f11b3a414146cb0606778d0b98b8..799d1c8d0df271bdd7d6e12cc218a0e0841cbbec 100644 (file)
@@ -9,7 +9,7 @@ fi
 
 function command_prompt() {
   exit_status="$?"
-#  # colors
+  # colors
   COLOR_RED="\[\033[31m\]"
   COLOR_GREEN="\[\033[32;40m\]"
   COLOR_YELLOW="\[\033[33;40m\]"
@@ -33,7 +33,7 @@ function command_prompt() {
     status_color="${COLOR_RED_BOLD}"
   fi
 
-  PS1="\n${COLOR_RED}\D{%A - %d/%m/%Y - %H:%M:%S} - ${COLOR_YELLOW}Exit status: ${status_color}${exit_status}${COLOR_NONE}\n${COLOR_GREEN}\u@\h${COLOR_NONE}:${COLOR_CYAN}\w${COLOR_NONE} \$ "
+  PS1="(${status_color}${exit_status}${COLOR_NONE}) [${COLOR_RED}\D{%Y%m%d %H:%M:%S}${COLOR_NONE}] ${COLOR_GREEN}\u@\h${COLOR_NONE}:${COLOR_CYAN}\w${COLOR_NONE} \\$ "
   PS2="${BOLD}>${OFF} "
 }