mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 18:27:38 +00:00
docs/config.md: add example for using pipes
As discussed on issue #1273, pipe usage on the jj config differs from git and hg. Signed-off-by: Isabella Basso <isabbasso@riseup.net>
This commit is contained in:
parent
4b00fb70d0
commit
3dfedf5814
1 changed files with 9 additions and 0 deletions
|
@ -182,6 +182,15 @@ a `$`):
|
||||||
|
|
||||||
`less -FRX` is the default pager in the absence of any other setting.
|
`less -FRX` is the default pager in the absence of any other setting.
|
||||||
|
|
||||||
|
### Processing contents to be paged
|
||||||
|
|
||||||
|
If you'd like to pass the output through a formatter e.g.
|
||||||
|
[`diff-so-fancy`](https://github.com/so-fancy/diff-so-fancy) before piping it
|
||||||
|
through a pager you must do it using a subshell as, unlike `git` or `hg`, the
|
||||||
|
command will be executed directly. For example:
|
||||||
|
|
||||||
|
`ui.pager = ["sh", "-c", "diff-so-fancy | less -RFX"]`
|
||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
You can define aliases for commands, including their arguments. For example:
|
You can define aliases for commands, including their arguments. For example:
|
||||||
|
|
Loading…
Reference in a new issue