# Set A Custom Pager For A Specific Command

The pager can be [configured globally](/til/tools/git/configuring-the-pager.md), for [one run of a command](/til/tools/git/turn-off-the-output-pager-for-one-command.md), or as I'll explain in this post, for a specific command.

*I explore all of this in* [*Optimize the way Git displays the output of commands*](https://www.youtube.com/watch?v=VpFldePcu_w)*.*

Let's assume a git configuration that uses `less` for any command that need a pager. Perhaps you'd like for the `git show` to work a bit differently than other commands. You want it to use `less` with the `-F` and `-X` flags.

A custom pager command can be set for any command in the `[pager]` section of the `~/.gitconfig` file.

```
[pager]
  show = "less -FX"
```

If you want to turn off the pager for a specific command, set it to the boolean value `false` instead.

```
[pager]
  show = false
```

See `man git-config` for more details in the `core.pager` and `pager.<cmd>` sections.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ploegert.gitbook.io/til/tools/git/set-a-custom-pager-for-a-specific-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
