![Forrest logo](/images/logo.png)
gh-config:tldr:3c69e
gh-config: Use `delta` in side-by-side mode as the default pager for all `gh` commands.
$ gh config set pager '${delta --side-by-side}'
try on your machine
This command sets the pager configuration in the gh
(GitHub CLI) to use the delta
command with the --side-by-side
option.
More specifically:
gh config set pager
is the command to set the pager configuration in the GitHub CLI.${delta --side-by-side}
is the value being assigned to the pager configuration.
The delta
command is a better-looking pager for the terminal that can be used with various CLI tools. When used as a pager, it enhances the viewing experience by adding syntax highlighting, line numbering, and side-by-side comparison for diffs.
The --side-by-side
option instructs delta
to display the content in a side-by-side diff format. This format shows changes line-by-line with added lines on one side and deleted lines on the other side.
So, by running this command, you're configuring the GitHub CLI (gh
) to use delta
as the pager, which will display content with side-by-side diff formatting.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.