1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 03:14:56 +03:00
Commit Graph

5 Commits

Author SHA1 Message Date
Johan Walles
fc59adefd0 Show Fish / Powershell specific help
On `moar --help`, if `moar` is not the default pager, try identifying
the user's shell and print instructions for setting `PAGER` in that
shell.

Identifies fish or Powershell, then falls back on bash / zsh
instructions (since I failed to come up with a sensible way of
identifying those).

Before this change, we always printed bash / zsh instructions.

Fixes: https://github.com/walles/moar/issues/251
2024-10-27 09:59:13 +01:00
Johan Walles
6ca69b954d On --help, print all *PAGER env vars 2024-01-29 23:38:20 +01:00
Johan Walles
8a6dd22bfe Try Linux-friendlier mktemp 2022-04-18 19:12:25 +02:00
Johan Walles
e7b6c088a5 Suggest "moar" if we're in the $PATH, otherwise an absolute path 2022-04-18 19:05:49 +02:00
Johan Walles
512d9fe26b Failing test case for #88 2022-04-18 08:42:33 +02:00