@@ -229,6 +229,8 @@ fn run() -> Result<bool> {
229229
230230 if app.matches.is_present("diagnostic") {
231231 use bugreport::{bugreport, collector::*, format::Markdown};
232+ let pager = bat::config::get_pager_executable(app.matches.value_of("pager"))
233+ .unwrap_or("less".to_owned()); // FIXME: Avoid non-canonical path to "less".
232234
233235 bugreport!()
234236 .info(SoftwareVersion::default())
@@ -252,7 +254,7 @@ fn run() -> Result<bool> {
252254 ]))
253255 .info(FileContent::new("Config file", config_file()))
254256 .info(CompileTimeInformation::default())
255− .info(CommandOutput::new("Less version", "less", &["--version"]))
257+ .info(CommandOutput::new("Less version", pager, &["--version"]))
256258 .print::<Markdown>();
257259
258260 return Ok(true);