Merge pull request #47 from laur89/master

fix shell error in forgit.plugin.zsh
This commit is contained in:
Chris Apple 2019-11-06 07:43:06 -07:00 committed by GitHub
commit 1cfc57b11f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'