summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2019-11-22 12:56:41 -0300
committerGitHub <noreply@github.com>2019-11-22 12:56:41 -0300
commitbedbafc6ff920a6dd1e36f88c49db5fa66d9756a (patch)
treed710fe59bf8394dd51442fe6b53a150b2da782d8
parent241b786469961923345c3e1bb9f79ae4630b4d79 (diff)
Expand tildes in paths (#160)v0.15.3
Fixes #159
-rwxr-xr-xnavi2
-rwxr-xr-xsrc/cheat.sh2
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
}