summaryrefslogtreecommitdiffstats
path: root/src/ui.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.sh')
-rw-r--r--src/ui.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.sh b/src/ui.sh
index 388d3d9..6716c75 100644
--- a/src/ui.sh
+++ b/src/ui.sh
@@ -20,7 +20,7 @@ ui::fzf() {
ui::select() {
local -r cheats="$1"
- [[ "$SHELL" =~ 'fish' ]] || local -r sub='$'
+ [[ "${SHELL:-}" =~ 'fish' ]] || local -r sub='$'
local -r script_path="${NAVI_HOME}/navi"
local -r preview_cmd="\"${script_path}\" preview ${sub:-}(echo \'{}\' | $(arg::serialize_code))"
@@ -95,4 +95,4 @@ ui::print_preview() {
printf " \033[${tag_color}m["; echo -n "$tags"; echo "]"
printf "\033[${snippet_color}m"
echo "$snippet" | ui::remove_dep_order
-} \ No newline at end of file
+}