mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Merge pull request #47 from laur89/master
fix shell error in forgit.plugin.zsh
Former-commit-id: 1cfc57b11f
This commit is contained in:
commit
35d0641327
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue