From 378c58a767d038b5aa54c5b81be962f63cf31440 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 15 Feb 2010 11:31:01 -0200 Subject: Smaller PS1 --- files/etc/profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files') diff --git a/files/etc/profile b/files/etc/profile index 512e871..799d1c8 100644 --- a/files/etc/profile +++ b/files/etc/profile @@ -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} " } -- cgit v1.2.3