bash-color-grc/conf.ls

52 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-01-25 18:36:02 +01:00
# size
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
colours=yellow
=======
2016-06-19 01:18:18 +02:00
# device major minor numbers
regexp=\s(\d+),\s+(\d+)\s
colours=default,bright_yellow ,yellow
=======
2015-01-25 18:36:02 +01:00
# time
regexp=(\s|^)\d+(:\d+)+(?=[\s,]|$)
2016-06-19 01:18:18 +02:00
colours=white
2015-01-25 18:36:02 +01:00
=======
2016-06-19 01:18:18 +02:00
# month
#regexp=\s[a-z]{3}\s
#colours=yellow
#=======
2015-01-25 18:36:02 +01:00
#regexp=(?<=\d):(?=\d)
#colours=bold yellow
#=======
# root
2016-06-19 01:18:18 +02:00
regexp=\s(root|wheel)(?=\s|$)
colours=unchanged,bold white on_red
2015-01-25 18:36:02 +01:00
=======
2016-06-19 01:18:18 +02:00
# SELinux
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
colours=default,green,yellow,cyan,magenta
-
# -rwxrwxrwx ============================
# File Type
2015-01-25 18:36:02 +01:00
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
2016-06-19 01:18:18 +02:00
colours=unchanged,unchanged,bold white
-
# owner rwx
2015-01-25 18:36:02 +01:00
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
2016-06-19 01:18:18 +02:00
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
-
# group rwx
2015-01-25 18:36:02 +01:00
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
2016-06-19 01:18:18 +02:00
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
-
# other rwx
2015-01-25 18:36:02 +01:00
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
2016-06-19 01:18:18 +02:00
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
-
# sStT all
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
colours=unchanged,bold green,bold yellow, bold red
-
# ACL
regexp=^\S{10}(\+)
colours=unchanged,on_cyan bold white