add time to zsh prompt

This commit is contained in:
Sami Samhuri 2012-08-01 21:03:55 -07:00
parent e88a9234ee
commit bf3dde465e

View file

@ -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)"