ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: document configuration of aliases

This commit is contained in:
Martin von Zweigbergk 2023-01-26 14:46:58 -08:00 committed by Martin von Zweigbergk
parent d4ed8f32b3
commit 772d6c47dd

View file

@ -68,6 +68,14 @@ a `$`):
`less -FRX` is the default pager in the absence of any other setting.
## Aliases
You can define aliases for commands, including their arguments. For example:
# `jj l` shows commits on the working-copy commit's (anonymous) branch
# compared to the `main` branch
aliases.l = ["log", "-r", "(main..@): | (main..@)-"]
## Editor
The default editor is set via `ui.editor`, though there are several places to