mirror of
https://github.com/garabik/grc.git
synced 2024-11-10 21:26:52 +01:00
73 lines
1.6 KiB
PostScript
73 lines
1.6 KiB
PostScript
# /full/path
|
|
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
|
|
colours=bold white
|
|
=======
|
|
# CAPS LINE
|
|
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
|
|
colours=underline
|
|
=======
|
|
# Capd Line
|
|
regexp=^([A-Z][-a-z0-9]+(\s+|$)){3,}$
|
|
colours=underline
|
|
=======
|
|
# VMSTAT
|
|
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
|
|
colours=bright_green
|
|
=======
|
|
# PID
|
|
regexp=^[a-zA-Z]+\w+\s+(\d+)|^\d\s+\w\s+(?:\w+\s+)?(\d+)|^\s*(\d+)
|
|
colours=unchanged,bold magenta,bold magenta,bold magenta
|
|
=======
|
|
# n.n.n
|
|
regexp=(\s|^)\d+\.\d+\.\d+(?=[\s,]|$)
|
|
colours=bold cyan
|
|
=======
|
|
# text:
|
|
regexp=^([-a-z0-9]+):\s
|
|
colours=unchanged,yellow
|
|
=======
|
|
# -options
|
|
regexp=(?<=\s)-[\w\d]+(?=\s|$)
|
|
colours=yellow
|
|
=======
|
|
# --long-option=
|
|
# legacy: regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
|
|
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=|\s)?(?!--)([^\s]*)
|
|
colours=cyan,white,underline cyan
|
|
=======
|
|
# [text]
|
|
regexp=\[[-\w\d:/]+\]
|
|
colours=cyan
|
|
=======
|
|
# root
|
|
regexp=root|wheel(?=\s|$)
|
|
colours=bold red
|
|
=======
|
|
# pts
|
|
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
|
|
colours=bright_yellow
|
|
=======
|
|
# tty
|
|
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
|
|
colours=bright_cyan
|
|
=======
|
|
# Negative NICE (works only in -l)
|
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(-\d+)
|
|
colours=unchanged,on_red bold white
|
|
=======
|
|
# Neutral NICE (works only in -l)
|
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(\d+)
|
|
colours=unchanged,cyan
|
|
=======
|
|
# Positive NICE (works only in -l)
|
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(1\d)
|
|
colours=unchanged,on_cyan bold white
|
|
=======
|
|
# Process ZOMBIE
|
|
regexp=^\d\s+([zZ])\s
|
|
colours=unchanged,on_red bold white
|
|
=======
|
|
# Process RS
|
|
regexp=^\d\s+([sSrR])\s
|
|
colours=unchanged,on_magenta black
|