Expand tildes in paths (#160)

Fixes #159
This commit is contained in:
Denis Isidoro 2019-11-22 12:56:41 -03:00 committed by GitHub
parent 241b786469
commit bedbafc6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
navi
View file

@ -4,7 +4,7 @@ set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)" export NAVI_HOME="$(cd "$(dirname "$0")" && pwd)"
source "${NAVI_HOME}/src/main.sh" source "${NAVI_HOME}/src/main.sh"
VERSION="0.15.2" VERSION="0.15.3"
NAVI_ENV="${NAVI_ENV:-prod}" NAVI_ENV="${NAVI_ENV:-prod}"
opts::eval "$@" opts::eval "$@"

View file

@ -2,7 +2,7 @@
cheat::find() { cheat::find() {
for path in $(echo "$NAVI_PATH" | tr ':' '\n'); do for path in $(echo "$NAVI_PATH" | tr ':' '\n'); do
find -L "$path" -iname '*.cheat' find -L "${path/#\~/$HOME}" -iname '*.cheat'
done done
} }