From 4b38342275d406768a5fb18c3a16546e8f4dad37 Mon Sep 17 00:00:00 2001 From: Dave Bolton Date: Tue, 16 Aug 2011 21:38:22 +1000 Subject: [PATCH] Don't calculate time since last commit unless necessary --- themes/lightningdb.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/lightningdb.zsh-theme b/themes/lightningdb.zsh-theme index 9c072eefb..bdf8c6c09 100644 --- a/themes/lightningdb.zsh-theme +++ b/themes/lightningdb.zsh-theme @@ -10,9 +10,9 @@ ZSH_THEME_GIT_TIME_SINCE_COMMIT_MEDIUM="%{$fg[yellow]%}" ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}" function git_prompt() { - time="$(git_time_since_commit)" info="$(git_prompt_info)" if [ -n "$info" ]; then + time="$(git_time_since_commit)" echo "%{$reset_color%}($time$info%{$reset_color%})" fi }