get closest file

Get the closest file by filename recursively.

Example

Usage

Options:

--all - show all matches, by default it will show the single closest file if any match

--break - separate multiple matches with a line break to make it easier to read, by default the separator will be a space, which means you can do something like this...

--depth N - set recusion depth

$ vim $(getclosest --all java)

...to open all files that match.

License

MIT