Skip to content

Commit

Permalink
Expand tildes in paths (#160)
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
denisidoro authored Nov 22, 2019
1 parent 241b786 commit bedbafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion navi
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down
2 changes: 1 addition & 1 deletion src/cheat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bedbafc

Please sign in to comment.