mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Don't calculate time since last commit unless necessary
This commit is contained in:
parent
88f8e91566
commit
4b38342275
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue