on master help sign in
Support "(/usr)/bin/less" as PAGER too
1d9e7acsharkdp
src/output.rs+1−1
@@ -26,7 +26,7 @@ impl OutputType {
26 .or_else(|_| env::var("PAGER"))
26 .or_else(|_| env::var("PAGER"))
27 .unwrap_or(String::from("less"));
27 .unwrap_or(String::from("less"));
28
28
29− let mut process = if pager == "less" {
29+ let mut process = if pager == "less" || pager.ends_with("/less") {
30 let mut args = vec!["--RAW-CONTROL-CHARS", "--no-init"];
30 let mut args = vec!["--RAW-CONTROL-CHARS", "--no-init"];
31 if quit_if_one_screen {
31 if quit_if_one_screen {
32 args.push("--quit-if-one-screen");
32 args.push("--quit-if-one-screen");