Skip to content

Commit

Permalink
Fix FZF_DEFAULT_OPTS error
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro committed Oct 28, 2019
1 parent 7df49b3 commit e9ed64b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion navi
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down
4 changes: 2 additions & 2 deletions src/ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit e9ed64b

Please sign in to comment.