added current time

This commit is contained in:
Paweł Płazieński 2015-12-16 23:17:15 +01:00
parent aed3f2f54e
commit e2c00dae07

8
.zshrc
View File

@ -164,6 +164,13 @@ prompt_git() {
fi
}
# show current time
prompt_time() {
local current_date
current_date=`date +%R`
prompt_segment green $PRIMARY_FG " ${current_date} "
}
# Dir: current working directory
prompt_dir() {
prompt_segment blue $PRIMARY_FG ' %~ '
@ -192,6 +199,7 @@ prompt_status() {
## Main prompt
prompt_main() {
CURRENT_BG='NONE'
prompt_time
prompt_status
prompt_root
prompt_user