From 5721301b25dc44018d85225b93a973e292eebb47 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 22 Sep 2010 11:52:52 +0200 Subject: [Colors,Prompts] Yeah! console --- 12_Prompts.zsh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to '12_Prompts.zsh') 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 @@ -293,6 +297,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... -- cgit v1.2.3