mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
fix: 🐛 No necessary to check if fzf exists during loading. #57
This commit is contained in:
parent
5d55d7d57d
commit
add3a02ebb
|
|
@ -13,11 +13,6 @@ function forgit::inside_work_tree
|
|||
git rev-parse --is-inside-work-tree >/dev/null;
|
||||
end
|
||||
|
||||
if not type -q fzf > /dev/null 2>&1
|
||||
forgit::warn "FZF not found and is required for forgit"
|
||||
exit 1
|
||||
end
|
||||
|
||||
set core_pager (git config core.pager)
|
||||
|
||||
if test -n $core_pager
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@ 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; }
|
||||
|
||||
hash fzf &>/dev/null || { forgit::warn "FZF not found and is required for forgit"; return 1; }
|
||||
|
||||
# https://github.com/wfxr/emoji-cli
|
||||
hash emojify &>/dev/null && forgit_emojify='|emojify'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue