From 416ac0308f4ec4a81ccf26e4ecbf7ea98b87b3db Mon Sep 17 00:00:00 2001 From: rlanore Date: Thu, 25 Mar 2021 13:55:46 +0100 Subject: [PATCH] fix: fix reset parameter in FORGIT_LOG_FORMAT default value (#145) * Fix reset color int FORGIT_LOG_FORMAT default value * Fix FORGIT_LOG_FORMAT default doc --- README.md | 2 +- forgit.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1522a74..6f02a7b 100644 --- a/README.md +++ b/README.md @@ -205,7 +205,7 @@ FORGIT_LOG_FZF_OPTS=' | Option | Description | Default | |---------------------|----------------|----------------------------------------------| -| `FORGIT_LOG_FORMAT` | git log format | `%C(auto)%h%d %s %C(black)%C(bold)%cr%reset` | +| `FORGIT_LOG_FORMAT` | git log format | `%C(auto)%h%d %s %C(black)%C(bold)%cr%Creset` | ### 📦 Optional dependencies diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index e41096a..533aa13 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -12,7 +12,7 @@ forgit_show_pager=${FORGIT_SHOW_PAGER:-$(git config pager.show || echo "$forgit_ forgit_diff_pager=${FORGIT_DIFF_PAGER:-$(git config pager.diff || echo "$forgit_pager")} forgit_ignore_pager=${FORGIT_IGNORE_PAGER:-$(hash bat &>/dev/null && echo 'bat -l gitignore --color=always' || echo 'cat')} -forgit_log_format=${FORGIT_LOG_FORMAT:-%C(auto)%h%d %s %C(black)%C(bold)%cr%reset} +forgit_log_format=${FORGIT_LOG_FORMAT:-%C(auto)%h%d %s %C(black)%C(bold)%cr%Creset} # git commit viewer forgit::log() {