unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.68k stars 265 forks source link

respect the $PAGER environment variable. prefer less to more #4319

Open stew opened 10 months ago

stew commented 10 months ago

I have my PAGER environment variable set to "less" but ucm is using more instead of less which is far less capable. I have less installed in /usr/bin/less

aryairani commented 3 weeks ago

@ChrisPenner Do you remember why we used UNISON_PAGER rather than PAGER? And @stew, will UNISON_PAGER work for you, or is that exactly what you don't want?

It looks like ucm is currently set to look for executables in this order:

  1. $UNISON_PAGER
  2. less
  3. more
ChrisPenner commented 3 weeks ago

I'm fine swapping it to PAGER, unless we think there are some pagers that don't behave the way we expect?

Alternatively we could try UNISON_PAGER first, then fallback to PAGER