summaryrefslogtreecommitdiff
path: root/12_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2010-09-22 11:52:52 +0200
committerHugues Hiegel <hugues@hiegel.fr>2010-09-22 11:52:52 +0200
commit5721301b25dc44018d85225b93a973e292eebb47 (patch)
treec5386f2bec869cd8bb43d34455092dae41842957 /12_Prompts.zsh
parent65246f791fb0ebd4c723b35077fed4c68ff3bd08 (diff)
[Colors,Prompts] Yeah! console
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r--12_Prompts.zsh21
1 files changed, 21 insertions, 0 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 0ebc21f..e6b90ab 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -13,6 +13,10 @@ if privileged_user
then
prompt_colors[generic]=${PS1_ROOT:-$color[bold];$color[red]}
fi
+if [ "$YEAHCONSOLE" = "true" ]
+then
+ prompt_colors[generic]=${PS1_YEAH}
+fi
set_prompt_colors
@@ -294,6 +298,23 @@ update_prompt_elements()
redefine_prompt ()
{
+ case "$YEAHCONSOLE" in
+ "true")
+ yeah_prompt
+ ;;
+ *)
+ two_lines_prompt
+ ;;
+ esac
+}
+
+yeah_prompt ()
+{
+ PS1=$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m "$CURDIR" "$C_$prompt_colors[dies]$_C">"$C_$prompt_colors[cmd]$_C" "
+}
+
+two_lines_prompt ()
+{
## Le prompt le plus magnifique du monde, et c'est le mien !
# Affiche l'user, l'host, le tty et le pwd. Rien que ça...
PS1=$AGENTS$MAILSTAT$ERROR$BATTERY$C_$prompt_colors[bar]$_C$HBAR$DATE"