From bedbafc6ff920a6dd1e36f88c49db5fa66d9756a Mon Sep 17 00:00:00 2001 From: Denis Isidoro Date: Fri, 22 Nov 2019 12:56:41 -0300 Subject: [PATCH] Expand tildes in paths (#160) Fixes #159 --- navi | 2 +- src/cheat.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/navi b/navi index ebda361..06c06c0 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.15.2" +VERSION="0.15.3" NAVI_ENV="${NAVI_ENV:-prod}" opts::eval "$@" diff --git a/src/cheat.sh b/src/cheat.sh index ae74e2c..84bf6ea 100755 --- a/src/cheat.sh +++ b/src/cheat.sh @@ -2,7 +2,7 @@ cheat::find() { for path in $(echo "$NAVI_PATH" | tr ':' '\n'); do - find -L "$path" -iname '*.cheat' + find -L "${path/#\~/$HOME}" -iname '*.cheat' done }