summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2011-05-10 11:21:40 +0200
committerHugues Hiegel <hugues@hiegel.fr>2011-05-10 11:21:40 +0200
commit332fc36bdf47af84660ac923658c8d2b31ae3b77 (patch)
treef53424a267a8389c8fd82012a8851d23c3b580f8
parent1663d8aaf06f202b673614f0f4cf5413f77fa7e5 (diff)
[Prompt] adds current display after hostname.
-rw-r--r--01_Functions.zsh1
-rw-r--r--12_Prompts.zsh2
2 files changed, 2 insertions, 1 deletions
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]" # <login>@<hostname> - 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" "
}