mirror of
https://github.com/garabik/grc.git
synced 2024-11-15 14:48:26 +01:00
d927c5db24
Add conf.jobs file Fix lsattr and df conf files Fix dockerimages conf file Update grc.fish
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# HEADERS
|
|
regexp=(?:\s|^)(CONTAINER ID|IMAGE|COMMAND|CREATED|STATUS|PORTS|NAMES)(?:\s|$)
|
|
colours=default,underline
|
|
======
|
|
# IMAGE NAME (as docker image)
|
|
regexp=\s{2,}(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)(:\S+)?\s{2,}\"
|
|
colours=unchanged,yellow,bright_white,cyan
|
|
======
|
|
# IMAGE
|
|
regexp=^(?!CONTAINER)(\w+)\s+([^\s]+)\s+(".*")\s+(.*(?=(?:Up|Exited|Created|Restarting)))
|
|
colours=unchanged,bright_black,unchanged,bright_black,cyan
|
|
======
|
|
# Statuses - Created
|
|
regexp=\sCreated\s
|
|
colours=blue
|
|
======
|
|
# Statuses
|
|
# https://github.com/docker/docker/blob/e5a3f86e447dd659da3c2e759f3c088a0bfcfe3d/container/state.go#L40
|
|
# Up
|
|
regexp=(?:\s{2}|^)(?:Up|Restarting)(?:(?:\s[\w,\d,(,)]+)+)?
|
|
colours=bold green
|
|
======
|
|
# Statuses - Exited
|
|
regexp=Exited\s.(\d+).+?(?=\s{2,})
|
|
colours=bold red,red
|
|
======
|
|
# Statuses - Restarting
|
|
regexp=Restarting\s.(\d+).+?(?=\s{2,})
|
|
colours=bold blue
|
|
======
|
|
# Ip Addresses / Ports
|
|
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:)?(\d{1,5}))?(?:->)?(\d{1,5}(\/)\w+)
|
|
colours=default,blue,default,bright_green,bright_blue,default
|
|
======
|
|
# NAMES
|
|
regexp=(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)$
|
|
colours=default,yellow,on_blue white
|