bash-color-grc/colourfiles/conf.logo-ls

92 lines
4.0 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# logo-ls is modern ls command with beautiful Icons and Git Integrations . Written in Golang
# https://github.com/Yash-Handa/logo-ls
#
#
# The following matches file sizes as produced by logo-ls -l or logo-ls -lh
# The output produced by logo-ls -s is probably not specific
# enough to be reliably matched, especially considering logo-ls -s(k|m|g|G).
#
# Example lines:
# -rw-r--r--MrSkoodlemrskoodle710 Sep 9 17:13:38_grc
# LrwxrwxrwxMrSkoodlemrskoodle16 Sep 9 17:13:38CHANGES@
# drwxr-xr-xMrSkoodlemrskoodle4096 Sep 9 17:31:34colourfiles/
# drwxr-xr-xMrSkoodlemrskoodle4096 Sep 9 17:13:38contrib/
# LrwxrwxrwxMrSkoodlemrskoodle16 Sep 9 17:13:38COPYING@
# -rw-r--r--MrSkoodlemrskoodle619 Sep 9 17:13:38CREDITS
# drwxr-xr-xMrSkoodlemrskoodle4096 Sep 9 17:13:38debian/
# -rwxr-xr-xMrSkoodlemrskoodle5188 Sep 9 17:13:38grc*
# -rw-r--r--MrSkoodlemrskoodle1479 Sep 9 17:13:38grc.1
# -rw-r--r--MrSkoodlemrskoodle4107 Sep 9 17:35:50grc.conf
# -rw-r--r--MrSkoodlemrskoodle968 Sep 9 17:13:57grc.fish
# -rw-r--r--MrSkoodlemrskoodle1843 Sep 9 17:13:57grc.sh
# -rw-r--r--MrSkoodlemrskoodle1482 Sep 9 17:37:07grc.spec
# -rw-r--r--MrSkoodlemrskoodle1321 Sep 9 17:13:38grc.spec.old
# -rw-r--r--MrSkoodlemrskoodle975 Sep 9 17:36:26grc.zsh
# -rwxr-xr-xMrSkoodlemrskoodle10849Sep 9 17:13:57grcat*
# -rw-r--r--MrSkoodlemrskoodle2492 Sep 9 17:13:38grcat.1
# -rw-r--r--MrSkoodlemrskoodle1021 Sep 9 17:13:38INSTALL
# -rwxr-xr-xMrSkoodlemrskoodle706 Sep 9 17:13:57install.sh*
# -rw-r--r--MrSkoodlemrskoodle9808 Sep 9 17:13:57README.markdown
# -rw-r--r--MrSkoodlemrskoodle11312Sep 9 17:13:38Regexp.txt
# -rw-r--r--MrSkoodlemrskoodle74 Sep 9 17:13:38TODO
#
# The regexp uses lookahead to match a date following the size
# size: 1M <= size < 10M
regexp=\W+(\d{7}|\d(?:[,.]?\d+)*[KM])(?=\W*[A-Z][a-z]{2}\s)
colours=green
=======
# size: 10M <= size < 100M
regexp=\W+(\d{8}|\d\d(?:[,.]?\d+)*M)(?=\W*[A-Z][a-z]{2}\s)
colours=yellow
=======
# size: 100M <= size < 1G
regexp=\W+(\d{9}|\d{3}M)(?=\W*[A-Z][a-z]{2}\s)
colours=red
=======
# size: 1G <= size
regexp=\W+(\d{10,}|[\d.,]+G)(?=\W*[A-Z][a-z]{2}\s)
colours=bold red
=======
# device major minor numbers
regexp=\s(\d+),\s+(\d+)\s
colours=default,bright_yellow ,yellow
=======
# Date-Time => G1=Month G2=Day G3=Hour G4=Minutes G5=Year
regexp=([A-Z][a-z]{2})\s([ 1-3]\d)\s(?:([0-2]?\d):([0-5]\d):([0-5]\d))
colours=unchanged,cyan,cyan,cyan,cyan,bold magenta
=======
# root
regexp=\s*(root|wheel)(?=\s*|$)
colours=unchanged,bold white on_red
=======
# SELinux
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
colours=default,green,yellow,cyan,magenta
-
# -rwxrwxrwx ============================
# File Type
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold white
-
# owner rwx
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
-
# group rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
-
# other rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
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