diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-07-20 11:59:17 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2012-07-20 11:59:17 +0200 |
commit | 752e1697e3111cf61fbd964020f651c6571d9e1b (patch) | |
tree | 34a72a823a3890fd00ffc101afb7eca73e21a73d /12_Prompts.zsh | |
parent | b66ef28d98ccb4874890ddc4f4612955e712349b (diff) |
LA FLEMME ....
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 4a8b1b6..548ab46 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -283,6 +283,13 @@ __show_date() echo $(tput cub $COLUMNS ; tput cuf $(($COLUMNS - $DATESIZE)))$DATE } +__display () +{ + __debug -n " Display..." + echo ${DISPLAY:+$C_$_prompt_colors[display]$_C"("$DISPLAY")"} + __debug +} +PS1_TASKBAR+=(__display) __display_vi_mode() { @@ -305,7 +312,7 @@ __two_lines_prompt () PS1_+=$(__show_date) PS1_+=" -"$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:+($DISPLAY)} "$CURDIR${VCSBRANCH:+ $VCSBRANCH} +"$C_$prompt_color[default]$_C$C_$_prompt_colors[user]$_C"%n"$C_$_prompt_colors[arob]$_C"@"$C_$_prompt_colors[host]$_C"%M "$CURDIR${VCSBRANCH:+ $VCSBRANCH} for trigger in $PS1_EXTRA_INFO do result=$($trigger) |