Merge pull request #135 from ameliagapin/follow-symlink

## What does this do

This modifies `cheat::find()` to follow symbolic links on disk. This allows users who symlink their dotfiles to `~` to keep their custom cheatsheets in their dotfiles repo.

## How to test

* [X] Create a new cheatsheet somewhere on disk
* [X] Create a symbolic link to that directory inside of your user's home directory
* [X] Set the path for navi cheatsheets to the symbolic link
* [X] Invoke navi
* [X] Ensure cheatsheets are visible
This commit is contained in:
Denis Isidoro 2019-10-23 18:11:13 -03:00 committed by GitHub
commit fdf5bf4382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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