fix shell error in forgit.plugin.zsh

This commit is contained in:
Laur Aliste 2019-11-06 13:12:27 +01:00
parent 697a80e413
commit 6255d8b405

View file

@ -3,7 +3,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; }
hash fzf &>/dev/null || {forgit::warn "FZF not found and is requried for forgit" && return 1}
hash fzf &>/dev/null || { forgit::warn "FZF not found and is requried for forgit"; return 1; }
# https://github.com/so-fancy/diff-so-fancy
hash diff-so-fancy &>/dev/null && forgit_fancy='|diff-so-fancy'