Mercurial > repos > other > linux
view nanorc.d/patch.nanorc @ 156:8bf9fc90ce51
Streamline HG Prompt with `inout` command
This avoids a second Mercurial invocation, which takes a couple
of seconds on a Raspberry Pi.
Also exported PS1 variants to make it easier to enable/disable
the VCS checks but keep the rest of the formatting
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 23 Aug 2023 20:26:28 +0100 |
parents | 03b4573837b5 |
children |
line wrap: on
line source
## Here is an example for patch files. syntax "patch" "\.(patch|diff|debdiff)$" magic "diff output" # There is no official support for comments in patch files. comment "" # Added lines. color green "^\+.*" # Show trailing whitespace only on added lines. color ,green "[[:space:]]+$" # Context lines take the default text colour. # Deleted lines. color red "^-.*" # Header lines. color brightblue "^(Index:|index|diff)[[:blank:]].*" # File names and dates. color red "^---.*" color green "^\+\+\+.*" # Line numbers. color magenta "^@@.*" # Statistics. color cyan start="^---$" end="^$"