浏览代码

avit: fix handling of time since last commit (#7350)

Ezequiel Pochiero 5 年之前
父节点
当前提交
f96d18ca93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/avit.zsh-theme

+ 1 - 1
themes/avit.zsh-theme

@@ -63,7 +63,7 @@ function _git_time_since_commit() {
     sub_hours=$((hours % 24))
     sub_minutes=$((minutes % 60))
 
-    if [ $hours -gt 24 ]; then
+    if [ $hours -ge 24 ]; then
       commit_age="${days}d"
     elif [ $minutes -gt 60 ]; then
       commit_age="${sub_hours}h${sub_minutes}m"