docs: update comment

This commit is contained in:
Wenxuan Zhang 2022-05-20 17:44:51 +08:00
parent 75e9d12bac
commit 544cf86bc4
No known key found for this signature in database
GPG key ID: CCAF35548C65530F
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ test -z "$forgit_diff_pager"; and set -g forgit_diff_pager (git config pager
test -z "$forgit_ignore_pager"; and set -g forgit_ignore_pager (type -q bat >/dev/null 2>&1 && echo 'bat -l gitignore --color=always' || echo 'cat')
test -z "$forgit_log_format"; and set -g forgit_log_format "-%C(auto)%h%d %s %C(black)%C(bold)%cr%Creset"
# https://github.com/wfxr/emoji-cli
# optional render emoji characters (https://github.com/wfxr/emoji-cli)
type -q emojify >/dev/null 2>&1 && set -g forgit_emojify '|emojify'
# git commit viewer

View file

@ -4,7 +4,7 @@ forgit::warn() { printf "%b[Warn]%b %s\n" '\e[0;33m' '\e[0m' "$@" >&2; }
forgit::info() { printf "%b[Info]%b %s\n" '\e[0;32m' '\e[0m' "$@" >&2; }
forgit::inside_work_tree() { git rev-parse --is-inside-work-tree >/dev/null; }
# https://github.com/wfxr/emoji-cli
# optional render emoji characters (https://github.com/wfxr/emoji-cli)
hash emojify &>/dev/null && forgit_emojify='|emojify'
forgit_pager=${FORGIT_PAGER:-$(git config core.pager || echo 'cat')}