diff --git a/internal/config/pager.go b/internal/config/pager.go index 1b26638..850116b 100644 --- a/internal/config/pager.go +++ b/internal/config/pager.go @@ -3,11 +3,17 @@ package config import ( "os" "os/exec" + "runtime" ) // Pager attempts to locate a pager that's appropriate for the environment. func Pager() string { + // default to `more` on Windows + if runtime.GOOS == "windows" { + return "more" + } + // if $PAGER is set, return the corresponding pager if os.Getenv("PAGER") != "" { return os.Getenv("PAGER")