From 9f35e3ef6963331b740bb0bf5fd7cd1cabf005de Mon Sep 17 00:00:00 2001 From: Kid Date: Sun, 16 Jan 2022 19:17:28 +0800 Subject: [PATCH] Quotes --- shell/navi.plugin.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shell/navi.plugin.fish b/shell/navi.plugin.fish index 9d69e6f..4c4a4c5 100644 --- a/shell/navi.plugin.fish +++ b/shell/navi.plugin.fish @@ -1,18 +1,18 @@ function _navi_smart_replace set -l current_process (commandline -p | string trim) - if test -z $current_process + if test -z "$current_process" commandline -i (navi --print) else - set -l best_match (navi --print --best-match --query $current_process) + set -l best_match (navi --print --best-match --query "$current_process") - if not test $best_match >/dev/null + if not test "$best_match" >/dev/null return end - if test $best_match = "" + if test -z "$best_match" commandline -p (navi --print --query $current_process) - else if test $current_process != $best_match + else if test "$current_process" != "$best_match" commandline -p $best_match else commandline -p (navi --print --query $current_process)