Closed hiddeninthesand closed 2 years ago
Which version of moar
is this (moar --version
)?
When I try the same thing with v1.9.1
I get:
To make Moar your default pager, put the following line in
your .bashrc or .bash_profile and it will be default in all
new terminal windows:
export PAGER=/Users/johan/src/moar/moar
Here's the current code for reference: https://github.com/walles/moar/blob/faa833fe4ec2b90d0621052f2b30e29074e3048a/moar.go#L57-L73
v1.9.1
, same as you. I have it installed at /usr/bin/moar
, but if I run it from another working directory it assumes that the binary is in the working directory, instead of /usr/bin/
. What working directory did you run moar --help
in?
You are right, thanks for reporting!
I will look into this and make sure it's done properly.
Appreciate it!
Made a new release for it, Homebrew status here: https://github.com/Homebrew/homebrew-core/pull/99564
Looks good, already pushed it to the MPR.
When running
moar --help
, Moar will suggest that you add it to your.bashrc
file as your default pager, alongside the line required, for example:This (potentially) incorrectly assumes that the
moar
application file is in your current working directory, which can lead to recommending the user the wrong line to insert into their.bashrc
file.