f96d18ca935f9b9bd6f1c51cb5c821a0b18e9601
- Author
- Ezequiel Pochiero <epochiero@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
avit: fix handling of time since last commit (#7350)
Diff
1diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
2index cf439f75755cb250cbad94fabbac8d03e63f0e31..aec14e4a6f6bb1636f45f9fc0f9e31c905afa3e7 100644
3--- a/themes/avit.zsh-theme
4+++ b/themes/avit.zsh-theme
5@@ -63,7 +63,7 @@ function _git_time_since_commit() {
6 sub_hours=$((hours % 24))
7 sub_minutes=$((minutes % 60))
8
9- if [ $hours -gt 24 ]; then
10+ if [ $hours -ge 24 ]; then
11 commit_age="${days}d"
12 elif [ $minutes -gt 60 ]; then
13 commit_age="${sub_hours}h${sub_minutes}m"