summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Isidoro <denis_isidoro@live.com>2019-12-17 13:36:57 -0300
committerDenis Isidoro <denis_isidoro@live.com>2019-12-17 13:36:57 -0300
commitac39ac630c0feab38b2f8a05b49d2feff9ed0147 (patch)
treee4e8b1b7754bdc669cba9cef11d7a076c7e86092
parent61ba531490e28d5fe6d57d343b91ae2f0c5fc278 (diff)
Bump to 0.17.0v0.17.0
-rwxr-xr-xnavi2
-rw-r--r--src/ui.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/navi b/navi
index 3288efa..d58d2c0 100755
--- a/navi
+++ b/navi
@@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh"
-VERSION="0.16.0"
+VERSION="0.17.0"
NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@"
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
+}