mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
parent
42ac8dae9c
commit
0b2e67c3d0
2 changed files with 2 additions and 1 deletions
2
navi
2
navi
|
@ -4,7 +4,7 @@ set -euo pipefail
|
|||
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
|
||||
source "${NAVI_HOME}/src/main.sh"
|
||||
|
||||
VERSION="0.15.5"
|
||||
VERSION="0.16.0"
|
||||
NAVI_ENV="${NAVI_ENV:-prod}"
|
||||
|
||||
opts::eval "$@"
|
||||
|
|
|
@ -11,6 +11,7 @@ ui::fzf() {
|
|||
if ${autoselect:-false}; then
|
||||
args+=("--select-1")
|
||||
fi
|
||||
args+=("--bind"); args+=("ctrl-j:down,ctrl-k:up")
|
||||
|
||||
local -r fzf_cmd="$([ $NAVI_ENV == "test" ] && echo "fzf_mock" || echo "fzf")"
|
||||
"$fzf_cmd" ${args[@]:-} --inline-info "$@"
|
||||
|
|
Loading…
Reference in a new issue