mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Fix "navi best" command (#162)
This commit is contained in:
parent
a36304dca4
commit
1c2dca3284
2 changed files with 2 additions and 3 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.3"
|
||||
VERSION="0.15.4"
|
||||
NAVI_ENV="${NAVI_ENV:-prod}"
|
||||
|
||||
opts::eval "$@"
|
||||
|
|
|
@ -56,8 +56,7 @@ ui::select() {
|
|||
local -r key="$(echo "$result" | head -n1)"
|
||||
|
||||
echo "$result" \
|
||||
| tail -n +2 \
|
||||
| ($best && head -n1 || cat) \
|
||||
| ($best && head -n1 || tail -n +2) \
|
||||
| selection::dict "$cheats" "$key"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue