2
0
mirror of https://github.com/garabik/grc.git synced 2024-09-14 17:21:29 +02:00
bash-color-grc/conf.ifconfig
Maxim Zhukov 7169fd287e * Add IPv6 prefix support.
* Add iface vlan support.
2015-10-19 16:13:18 +03:00

52 lines
833 B
Plaintext

# ipv4
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold green
=======
# ipv6
regexp=[0-9a-fA-F]{0,4}(\:\:?[0-9a-fA-F]{0,4})+?(\/\d{1,3})
colours=bold green
=======
# hwaddr
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
colours=yellow
=======
# size
regexp=\d+(\.\d+)?\s(T|G|M|K|)i?B
colours=yellow
=======
# interface
regexp=^([a-z0-9\.]{2,}\d*):?\s
colours=bold green
=======
#ip disc
regexp=(inet6?|netmask|broadcast)
colours=cyan
=======
#flags
regexp=(?<=[,<])[^,]+?(?=[,>])
colours=blue
=======
# mtu
regexp=(?i)mtu(\s|\:)\d+
colours=green
=======
#errors
regexp=errors(\s|\:)\d+
colours=red
=======
regexp=dropped(\s|\:)\d+
colours=white
=======
regexp=overruns(\s|\:)\d+
colours=green
=======
regexp=frame(\s|\:)\d+
colours=white
=======
regexp=carrier(\s|\:)\d+
colours=cyan
=======
regexp=collisions(\s|\:)\d+
colours=red