From bf3dde465ec9e37601504be5b941dab05875b5f8 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 1 Aug 2012 21:03:55 -0700 Subject: [PATCH] add time to zsh prompt --- zsh/functions/prompt_sjs_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/functions/prompt_sjs_setup b/zsh/functions/prompt_sjs_setup index 24793ca..6df0fb7 100644 --- a/zsh/functions/prompt_sjs_setup +++ b/zsh/functions/prompt_sjs_setup @@ -80,7 +80,7 @@ prompt_sjs_setup() { local -A pc pc[default]='default' pc[date]='cyan' - pc[time]='Blue' + pc[time]='Black' pc[host]='Green' pc[user]='cyan' pc[punc]='yellow' @@ -105,6 +105,7 @@ prompt_sjs_setup() { local p_rc PROMPT= + PROMPT+="$pc[time][%t]$pc[reset] " PROMPT+="%(?..$pc[rc]-%1v- $pc[reset])" PROMPT+="$pc[path]%(2~.%~.%/)$pc[reset]" PROMPT+="\$(prompt_sjs_scm_branch)"