Change time format in zsh prompt
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
1a130f03f8
commit
774154a826
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ function precmd() {
|
||||||
# Custom prompt
|
# Custom prompt
|
||||||
NEWLINE=$'\n'
|
NEWLINE=$'\n'
|
||||||
export PS1="┌─"
|
export PS1="┌─"
|
||||||
export PS1="${PS1}%F{red}[%*]%f"
|
export PS1="${PS1}%F{red}[%D{%H:%I:%S}]%f"
|
||||||
export PS1="${PS1}%F{blue}[%m]%f"
|
export PS1="${PS1}%F{blue}[%m]%f"
|
||||||
export PS1="${PS1}%F{yellow}[%~]%f"
|
export PS1="${PS1}%F{yellow}[%~]%f"
|
||||||
export PS1="${PS1}"'${(r:$(prompt_width)::─:)}'
|
export PS1="${PS1}"'${(r:$(prompt_width)::─:)}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue