diff --git a/conf.d/forgit.plugin.fish b/conf.d/forgit.plugin.fish index 665ef72..3ddde42 100644 --- a/conf.d/forgit.plugin.fish +++ b/conf.d/forgit.plugin.fish @@ -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 diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 7da4b83..da2fce0 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -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')}