add time to zsh prompt
This commit is contained in:
parent
e88a9234ee
commit
bf3dde465e
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ prompt_sjs_setup() {
|
||||||
local -A pc
|
local -A pc
|
||||||
pc[default]='default'
|
pc[default]='default'
|
||||||
pc[date]='cyan'
|
pc[date]='cyan'
|
||||||
pc[time]='Blue'
|
pc[time]='Black'
|
||||||
pc[host]='Green'
|
pc[host]='Green'
|
||||||
pc[user]='cyan'
|
pc[user]='cyan'
|
||||||
pc[punc]='yellow'
|
pc[punc]='yellow'
|
||||||
|
|
@ -105,6 +105,7 @@ prompt_sjs_setup() {
|
||||||
local p_rc
|
local p_rc
|
||||||
|
|
||||||
PROMPT=
|
PROMPT=
|
||||||
|
PROMPT+="$pc[time][%t]$pc[reset] "
|
||||||
PROMPT+="%(?..$pc[rc]-%1v- $pc[reset])"
|
PROMPT+="%(?..$pc[rc]-%1v- $pc[reset])"
|
||||||
PROMPT+="$pc[path]%(2~.%~.%/)$pc[reset]"
|
PROMPT+="$pc[path]%(2~.%~.%/)$pc[reset]"
|
||||||
PROMPT+="\$(prompt_sjs_scm_branch)"
|
PROMPT+="\$(prompt_sjs_scm_branch)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue