From 54ca66d8e5f0820e9e5badf34c0e8bd156a71fea Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 27 Jul 2013 23:11:52 -0400 Subject: [PATCH] Add timestamp --- zsh/prompt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zsh/prompt b/zsh/prompt index 38fef200..5ab05cae 100644 --- a/zsh/prompt +++ b/zsh/prompt @@ -22,8 +22,9 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}+%{$fg[white]%}" ################## prompt() { - echo -n "%{$fg[red]%}" - echo -n "%{$FX[bold]%}" + echo -n "%{$FG[242]%}" + echo -n "$(date '+%H:%M:%S')" + echo -n "%{$FG[white]%}" # Show the hostname if this is an SSH session if [[ -n $SSH_CLIENT ]]; then @@ -31,7 +32,9 @@ prompt() { fi # The prompt - echo -n "\$ %{$FX[no-bold]%}" + echo -n "%{$fg[red]%}" + echo -n "%{$FX[bold]%}" + echo -n " \$ %{$FX[no-bold]%}" } rprompt() {