-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the
:doc
command work even if lf
is not in the PATH, add `lf…
…` environment variable (#1176) * Export a `$lf` environment variable with path to lf binary If Go fails to find a path to the lf binary, `$lf` is set to the string `lf` so that running `$lf` in scripts gives a reasonable error message. * Make the `:doc` command work even if lf is not in the PATH Previously, `:doc` executed `lf -doc`. Now, it executed `$lf -doc` or `%lf% -doc`. Before this change, `:doc` did not work if `lf` is not in the PATH. This is likely to happen to new users who are trying out `lf` and need docs the most. Moreover, if you made some changes to the docs and ran `lf` with `go run .`, `:doc` would return the docs for the version of `lf` in the PATH instead of what is expected.
- Loading branch information
Showing
6 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters