Fix time format in zsh prompt

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-06-19 07:58:37 +02:00
parent 774154a826
commit 56950b5ed2
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -157,7 +157,7 @@ function precmd() {
# Custom prompt
NEWLINE=$'\n'
export PS1="┌─"
export PS1="${PS1}%F{red}[%D{%H:%I:%S}]%f"
export PS1="${PS1}%F{red}[%D{%T}]%f"
export PS1="${PS1}%F{blue}[%m]%f"
export PS1="${PS1}%F{yellow}[%~]%f"
export PS1="${PS1}"'${(r:$(prompt_width)::─:)}'