diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2019-11-22 12:56:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 12:56:41 -0300 |
commit | bedbafc6ff920a6dd1e36f88c49db5fa66d9756a (patch) | |
tree | d710fe59bf8394dd51442fe6b53a150b2da782d8 | |
parent | 241b786469961923345c3e1bb9f79ae4630b4d79 (diff) |
Expand tildes in paths (#160)v0.15.3
Fixes #159
-rwxr-xr-x | navi | 2 | ||||
-rwxr-xr-x | src/cheat.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 } |