From 332fc36bdf47af84660ac923658c8d2b31ae3b77 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 10 May 2011 11:21:40 +0200 Subject: [Prompt] adds current display after hostname. --- 01_Functions.zsh | 1 + 12_Prompts.zsh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index b189e87..4caa5dc 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -320,6 +320,7 @@ set_prompt_colors () #prompt_colors[term]="$prompt_colors[generic]" # tty - unused, see term title prompt_colors[user]="$prompt_colors[generic]" # login - generic prompt_colors[host]="$prompt_colors[generic]" # hostname - generic + prompt_colors[display]="$prompt_colors[generic]" # hostname - generic #prompt_colors[hist]="$color[none]" # history number - unused prompt_colors[arob]="$color[bold];$prompt_colors[generic]" # @ - bold generic prompt_colors[dies]="$prompt_colors[generic]" # the bottom-end of the prompt - generic diff --git a/12_Prompts.zsh b/12_Prompts.zsh index d3c914f..5b01780 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -325,7 +325,7 @@ 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$STLINUX$HBAR$DATE" -"$C_"30;1"$_C$SHLVL"-"$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m "$CURDIR$CVSTAG$SVNREV$GITBRANCH$HGBRANCH" "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " +"$C_"30;1"$_C$SHLVL"-"$C_$prompt_color[default]$_C$C_$prompt_colors[user]$_C"%n"$C_$prompt_colors[arob]$_C"@"$C_$prompt_colors[host]$_C"%m"$C_$prompt_colors[display]$_C"$DISPLAY "$CURDIR$CVSTAG$SVNREV$GITBRANCH$HGBRANCH" "$C_$prompt_colors[dies]$_C"%#"$C_$prompt_colors[cmd]$_C" " } -- cgit v1.2.3