mirror of
https://github.com/denisidoro/navi
synced 2024-11-24 20:43:06 +00:00
Fix preview in fish shell
This commit is contained in:
parent
76177df091
commit
7bc7f2304f
1 changed files with 3 additions and 1 deletions
|
@ -20,8 +20,10 @@ ui::fzf() {
|
|||
ui::select() {
|
||||
local -r cheats="$1"
|
||||
|
||||
[[ "$SHELL" =~ 'fish' ]] || local -r sub='$'
|
||||
|
||||
local -r script_path="${NAVI_HOME}/navi"
|
||||
local -r preview_cmd="\"${script_path}\" preview \$(echo \'{}\' | $(arg::serialize_code))"
|
||||
local -r preview_cmd="\"${script_path}\" preview ${sub:-}(echo \'{}\' | $(arg::serialize_code))"
|
||||
|
||||
local -r query="$(dict::get "$OPTIONS" query)"
|
||||
local -r entry_point="$(dict::get "$OPTIONS" entry_point)"
|
||||
|
|
Loading…
Reference in a new issue