From add3a02ebb0fa7431b5bb16863cf4684a64c61ae Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Fri, 22 Nov 2019 17:48:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20No=20necessary=20to=20che?= =?UTF-8?q?ck=20if=20fzf=20exists=20during=20loading.=20#57?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forgit.plugin.fish | 5 ----- forgit.plugin.zsh | 2 -- 2 files changed, 7 deletions(-) diff --git a/forgit.plugin.fish b/forgit.plugin.fish index 8e8d7ad..5991f90 100755 --- a/forgit.plugin.fish +++ b/forgit.plugin.fish @@ -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 diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 6ae7048..dfebdc5 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -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'