From e2c00dae07c0a52b46962589a1db321ba99476b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Wed, 16 Dec 2015 23:17:15 +0100 Subject: [PATCH] added current time --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index 925381e..9fa5313 100644 --- a/.zshrc +++ b/.zshrc @@ -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