add new configurations

This commit is contained in:
Yurii Myronchuk 2018-01-06 14:04:34 +02:00
parent ffd3b12a40
commit 481e097c76
6 changed files with 181 additions and 5 deletions

View File

@ -8,16 +8,24 @@ colours=unchanged,underline green,bright_green
======
# UUID
regexp=\sUUID="([^"]+)
colours=default,blue
colours=bold yellow,blue
======
#UUID_SUB
regexp=\sUUID_SUB="([^"]+)
colours=green,bright_green
======
# TYPE
regexp=TYPE="([^"]+)
colours=default,cyan
colours=bold cyan,cyan
======
# LABEL
regexp=LABEL="([^"]+)
colours=default,bright_cyan
regexp=\sLABEL="([^"]+)
colours=bold bright_cyan,bright_cyan
======
# PARTLABEL
regexp=\sPARTLABEL="([^"]+)
colours=bold green,red
# PARTUUID
regexp=PARTUUID="([^"]+)
colours=default,magenta
colours=green,magenta

70
colourfiles/conf.iwconfig Normal file
View File

@ -0,0 +1,70 @@
# no wireless extensions
regexp=\bno wireless extensions
colours=red
=======
# Frequency
regexp=[0-9\.]{1,10} GHz
colours=bold green
=======
# Type
regexp=802\.11([a-z]+)
colours=bold yellow
=======
# Speed
regexp=[0-9]+ Mb/s
colours=bold yellow
=======
# Tx-Power
regexp=\-?[0-9]+ dBm
colours=bold green
=======
# ipv4
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold green
=======
# ipv6
regexp=\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+
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

7
colourfiles/conf.lolcat Normal file
View File

@ -0,0 +1,7 @@
#Message
regexp=([^\w\d]+)
colours=unchanged
======
regexp=([a-zA-Z0-9]+)
colours=default,green,yellow,red

76
colourfiles/conf.whois Normal file
View File

@ -0,0 +1,76 @@
# field
regexp=^([\w\s])*:
colours=bold white
=======
# data
regexp=:\s[\w\s\W\S]*$
colour=blue
=======
# comments
regexp=^([;%])([\s\w\S\W])*$
colours=yellow
=======
# comments
regexp=(^(---)|(>>>))[\s\w\S\W]*$
colours=yellow
=======
# domain
regexp=(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
colours=green
=======
# url
regexp=http[s]?://(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})(/[\w\d\S\s]*)*
colours=bold green
=======
# phone
regexp=\+([\d\.]*)
colours=bold yellow
=======
# email
regexp=([\d\w\S])+@(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
colours=bold blue
=======
# date
regexp=([\d]{4}[- ](([\d]{2})|([a-zA-Z]{3,}))[ -][\d]{2})|([\d]{2}[ -](([a-zA-Z]{3,})|([\d]{2}))[ -][\d]{4})
colours=bold red
=======
# time
regexp=[\d]{2}:[\d]{2}:[\d]{2}((\.[\d]*[Z]?)|(\+[\d]*))?
colours=red
=======
# NOTICE
regexp=NOTICE
colours=bold blue
=======
# TERM OF USE
regexp=TERMS OF USE
colours=bold blue
=======
# registrar
regexp=(Sponsoring )?[Rr]egistrar([\w\s\S])*:
colours=bold cyan
=======
# registrant
regexp=(Registry )?[Rr]egistrant([\w\s\S])*:
colours=bold blue
=======
# admin
regexp=(Registry )?[Aa]dmin([\w\s\S])*:
colours=bold magenta
=======
# tech
regexp=(Registry )?[Tt]ech([\w\s\S])*:
colours=bold yellow
=======
# billing
regexp=(Registry )?[Bb]illing([\w\s\S])*:
colours=bold green
=======
# NS
regexp=((nserver)|(Name Server)):
colours=bold green
=======
# domain status
regexp=(Domain Status)|(status)
colours=bold red

View File

@ -270,3 +270,16 @@ conf.ant
(^|[/\w\.]+/)mvn\s?
conf.mvn
# iwconfig command
(^|[/\w\.]+/)iwconfig\s?
conf.iwconfig
# lolcat command
(^|[/\w\.]+/)lolcat\s?
conf.lolcat
# whois
(^|[/\w\.]+/)whois\s?
conf.whois

View File

@ -26,6 +26,8 @@ if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
traceroute \
traceroute6 \
wdiff \
whois \
iwconfig \
);
# Set alias for available commands.