Fix FZF_DEFAULT_OPTS error

This commit is contained in:
Denis Isidoro 2019-10-28 17:08:35 -03:00
parent 7df49b3ad1
commit e9ed64bd01
2 changed files with 3 additions and 3 deletions

2
navi
View file

@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh"
VERSION="0.15.0"
VERSION="0.15.1"
NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@"

View file

@ -13,8 +13,8 @@ ui::fzf() {
args+=("--select-1")
fi
local fzf_opts="${FZF_DEFAULT_OPTS:---height 70% --reverse --border --inline-info --cycle}"
export FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS} ${fzf_overrides}"
local -r fzf_opts="${FZF_DEFAULT_OPTS:---height 70% --reverse --border --inline-info --cycle}"
export FZF_DEFAULT_OPTS="${fzf_opts} ${fzf_overrides}"
local -r fzf_cmd="$([ $NAVI_ENV == "test" ] && echo "fzf_mock" || echo "fzf")"
"$fzf_cmd" ${args[@]:-} --inline-info "$@"