mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
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:
commit
fdf5bf4382
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue