diff options
author | Ezequiel Pochiero <epochiero@gmail.com> | 2018-10-27 12:09:55 -0300 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-10-27 17:09:55 +0200 |
commit | f96d18ca935f9b9bd6f1c51cb5c821a0b18e9601 (patch) | |
tree | 24aecf34de1ae6a5e0309d73aae85a1c3407c84d /themes | |
parent | f31ef2024dacc4c3a35e8486173fe9de3fcd67be (diff) | |
download | zsh-f96d18ca935f9b9bd6f1c51cb5c821a0b18e9601.tar.gz zsh-f96d18ca935f9b9bd6f1c51cb5c821a0b18e9601.tar.bz2 zsh-f96d18ca935f9b9bd6f1c51cb5c821a0b18e9601.zip |
avit: fix handling of time since last commit (#7350)
Diffstat (limited to 'themes')
-rw-r--r-- | themes/avit.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme index cf439f757..aec14e4a6 100644 --- a/themes/avit.zsh-theme +++ b/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" |