7 changed files with 205 additions and 11 deletions
@ -0,0 +1,193 @@
@@ -0,0 +1,193 @@
|
||||
#cligen/cfUt.cfToCL include syntax is [include__NotAllUpper] => include file |
||||
#while [include__ALLUPPER] instead includes the file pointed to by "$ALLUPPER". |
||||
|
||||
kind = "numeric cset 0123456789-_.:,%" |
||||
kind = "capsdoc cset ABCDEFGHIJKLMNOPQRSTUVWXYZ_-." |
||||
kind = "object SFX .o .a .la .so core .pyc .pyo .dvi .elc .obj" |
||||
kind = "script SFX .pl .awk .sed .sh .csh .gpi akefile .log .nims .R .js .scm .lsp .cfg .cf .conf" |
||||
kind = "compress SFX .z .gz .bz .bz2 .lz .Lz .xz 4z .zs .zs" |
||||
kind = "tarchive SFX .tar .tgz .tbz .tbz2 .tlz .txz .tLz .tzs" |
||||
kind = "archive SFX .zip .rar .deb .rpm" |
||||
kind = "pointer SFX .torrent .uri .url .urls" |
||||
kind = "backup SFX .swp .vim .bak .orig ~" |
||||
kind = "header sfx .h .hh .pxi .pxd .diff .patch" |
||||
kind = "source sfx .s .c .cc .cpp .d .i .java .f .f95 .m .nb .py .pyx .nim .vim .el .tex .fig .jl" |
||||
kind = "document sfx .txt .doc .html .htm .ps .eps .pdf .prn .mif .fm .md .rst" |
||||
kind = "image sfx .img .bmp .jpg .gif .jpeg .png .ppm" |
||||
kind = "audio sfx .au .mp3 .wav .ogg .m4a" |
||||
kind = "video sfx .mpg .mpeg .mp4 .avi .flv .ogm .mkv .m4v .mts .m2ts .wmv .mov .swf .asf .rm webm" |
||||
kind = "dot PFX ." #classic Unix dot file/dir/ln/etc. |
||||
kind = "onOutErr PFX o. e." #outputs from cb's "on hosts cmd" system |
||||
#kind = "media any image audio video" #combo |
||||
#kind = "special none reg" |
||||
#kind = "sWithL PFX l" |
||||
#kind = "eWithC SFX c" |
||||
#kind = "combo all sWithL eWithC ELF" |
||||
#kind = "sysOwn uid 0 1 2 3 4 5 6 7 8 9" #call first 10 owners "sys" |
||||
#kind = "sysGrp gid 0 1 2 3 4 5 6 7 8 9" #call first 10 group ids "sys" |
||||
|
||||
colors = "fhot- = BLACK" |
||||
colors = "fhot0 = PURPLE" |
||||
colors = "fhot1 = BLUE" |
||||
colors = "fhot2 = CYAN" |
||||
colors = "fhot3 = GREEN" |
||||
colors = "fhot4 = YELLOW" |
||||
colors = "fhot5 = RED" |
||||
colors = "fhot+ = WHITE" |
||||
|
||||
colors = "FHOT- = black" |
||||
colors = "FHOT0 = purple" |
||||
colors = "FHOT1 = blue" |
||||
colors = "FHOT2 = cyan" |
||||
colors = "FHOT3 = green" |
||||
colors = "FHOT4 = yellow" |
||||
colors = "FHOT5 = red" |
||||
colors = "FHOT+ = white" |
||||
|
||||
colors = "bhot- = on_BLACK" |
||||
colors = "bhot0 = on_PURPLE" |
||||
colors = "bhot1 = on_BLUE" |
||||
colors = "bhot2 = on_CYAN" |
||||
colors = "bhot3 = on_GREEN" |
||||
colors = "bhot4 = on_YELLOW" |
||||
colors = "bhot5 = on_RED" |
||||
colors = "bhot+ = on_WHITE" |
||||
|
||||
colors = "BHOT- = on_black" |
||||
colors = "BHOT0 = on_purple" |
||||
colors = "BHOT1 = on_blue" |
||||
colors = "BHOT2 = on_cyan" |
||||
colors = "BHOT3 = on_green" |
||||
colors = "BHOT4 = on_yellow" |
||||
colors = "BHOT5 = on_red" |
||||
colors = "BHOT+ = on_white" |
||||
|
||||
[include__LC_THEME] #..LC_THEME set. Defs used by color, ageFmt, maybe style. |
||||
|
||||
color="dot:0x04:0 NONE" |
||||
color="onOutErr:0xF0:0 FHOT-" |
||||
color="compress:0x3D:0 fhot1" |
||||
color="tarchive:0x3E:0 fhot1" |
||||
color="archive:0x3F:0 fhot1" |
||||
color="audio:0x70:0 fhot0" |
||||
color="image:0x71:0 fhot0" |
||||
color="video:0x72:0 fhot0" |
||||
#color="media:0x72:0 fhot0" |
||||
#color="special:0x72:2 blink" |
||||
#color="combo:0x00:0 blink" |
||||
color="script:0x40:0 fhot4" |
||||
color="pointer:0x50:0 FHOT0" #pointers odd ducks=>alt bank |
||||
color="header:0x58:0 fhot2" #Intefaces are cooler prelude |
||||
color="source:0x60:0 fhot3" #..to neutral warmth impls. |
||||
color="object:0x68:0 fhot5" #Could arguably swap obj&exec |
||||
color="backup:0x80:0 FHOT4" #backups odd ducks=>alt bank |
||||
color="capsdoc:0x23:0 fhot+" #Docs are just a different |
||||
color="numeric:0x21:0 fhot+" #process entirely => gray scl |
||||
color="document:0x24:0 fhot+" |
||||
|
||||
color="symlink:0x10:1 italic" |
||||
color="dir:0x20:1 BLUE bold" |
||||
color="reg:0x65:1 NONE" |
||||
color="cdev:0x30:0 YELLOW on_purple" |
||||
color="bdev:0x40:1 CYAN on_purple" |
||||
color="fifo:0x50:1 BLUE on_purple" |
||||
color="socket:0x60:1 WHITE on_purple" |
||||
|
||||
color="-sym:0x10:2 blink" #early since no stat data to use |
||||
#color="CAP:0x10:2 blink" |
||||
#color="ACL:0x10:2 blink" |
||||
color="hard:0x80:2 underline" #maybe inverse or struck? |
||||
|
||||
color="odd:0x30:3 on_RED" #early since combines many things |
||||
color="+sym:0x18:3 italic" |
||||
color="tmpD:0x20:3 YELLOW" #clobber FG only->yellow on_blue |
||||
color="suid:0x50:3 on_CYAN" #pastel backgrounds for sXid |
||||
color="sgid:0x60:3 on_green" |
||||
color="worldW:0x40:4 on_RED" #world writable higherD 2clobber |
||||
|
||||
#struck can sometimes be hard to read text; hence hard to read dirents get it: |
||||
color="unR:0xF8:5 struck" #unreadable or isDir & no-exec |
||||
|
||||
color="exec:0x70:6 bold" |
||||
|
||||
color="unknown:0x22:0 NONE" #Added if missing;Here to set ord |
||||
|
||||
color = "sizeB fhot1" #Value-conditional fields besides paths |
||||
color = "sizeK fhot2" |
||||
color = "sizeM fhot3" |
||||
color = "sizeG fhot4" |
||||
color = "sizeT fhot5 inverse" #TB-scl individual files are likely a problem |
||||
color = "sizeS italic" #Additive text attr for sparse files (u<75%) |
||||
#Color all 4 octal digs as how only one affects invoking process (dep on owners) |
||||
color = "perm0 WHITE on_purple" #000: --- #Not so rare, but very restrictive |
||||
color = "perm1 fhot1" #001: --x #rare, but happens w/eg. suid |
||||
color = "perm2 CYAN on_red" #010: -w- #unlikely to be correct |
||||
color = "perm3 GREEN on_red" #011: -wx #unlikely to be correct |
||||
color = "perm4 fhot2" #100: r-- #RO: pretty normal. |
||||
color = "perm5 fhot3" #101: r-x #color like 'exec' is colored. |
||||
color = "perm6 fhot4" #110: rw- #RW: even more normal |
||||
color = "perm7 fhot5" #111: rwx #Only so many yellows..Orange? |
||||
|
||||
ageFmt = "86400@%{fhot0}y%{fhot1}m%{fhot2}d" |
||||
ageFmt = "0@%{fhot3}H%{fhot4}M%{fhot5}S" |
||||
ageFmt = "FUTURE@%{red}Y%{white}m" |
||||
|
||||
ageFmt = "-ANYTIME@%y/%m/%d:%H:%M:%S.%3" |
||||
|
||||
ageFmt = "+31556952@/31556952 <y fhot0" |
||||
ageFmt = "+2678400@/604800 <w fhot1" |
||||
ageFmt = "+86400@/86400 <d fhot2" |
||||
ageFmt = "+6000@/3600 <h fhot3" |
||||
ageFmt = "+100@/60 <m fhot4" |
||||
ageFmt = "+0@/1 <s fhot5" |
||||
|
||||
#LISTING STYLES/ALIASES; Increasing "L-ness" gives increasing detail. NOTE: Use |
||||
#%r if you worry about automounters/NFS hanging on link tgts. Also, -f below |
||||
#should really end in "*4 if you ask me,but stdlib parsecfg sez "invalid token". |
||||
|
||||
Style = r"""s = -X./ "-f%s %f""" |
||||
Style = r"""S = -DLss""" |
||||
Style = r"""psa = -l -X./ "-f%P %S %f%R""" |
||||
Style = r"""ps = -s psa -xdot""" |
||||
# Same as above+ showing times |
||||
Style = r"""la = -l -X./ "-f%P %s %m %f%R""" |
||||
Style = r"""l = -s la -xdot""" |
||||
Style = r"""ls = -s l -os""" |
||||
Style = r"""lu = -s l -oa "-f%P %s %a %f%R""" |
||||
Style = r"""lm = -s l -om "-f%P %s %m %f%R""" |
||||
Style = r"""lt = -s l -om "-f%P %s %m %f%R""" |
||||
Style = r"""lv = -s l -ov "-f%P %s %v %f%R""" |
||||
Style = r"""lc = -s l -oc "-f%P %s %c %f%R""" |
||||
Style = r"""lb = -s l -ob "-f%P %s %b %f%R""" |
||||
# Same as above+ showing owner |
||||
Style = r"""lla = -Hl -X./ "-f%P %{bold}U %s %m %f%R""" |
||||
Style = r"""ll = -Hslla -xdot""" |
||||
Style = r"""lls = -Hsll -os""" |
||||
Style = r"""llu = -Hsll -oa "-f%{bold}U %P %s %a %f%R""" |
||||
Style = r"""llm = -Hsll -om "-f%{bold}U %P %s %m %f%R""" |
||||
Style = r"""llt = -Hsll -om "-f%{bold}U %P %s %m %f%R""" |
||||
Style = r"""llv = -Hsll -ov "-f%{bold}U %P %s %v %f%R""" |
||||
Style = r"""llc = -Hsll -oc "-f%{bold}U %P %s %c %f%R""" |
||||
Style = r"""llb = -Hsll -ob "-f%{bold}U %P %s %b %f%R""" |
||||
# Show most things: |
||||
Style = r"""La = -Hl -X./ "-f%K %P %n %{bold}U %{italic}G %S %M %f%R""" |
||||
Style = r"""L = -HsLa -xdot""" |
||||
Style = r"""Ls = -HsL -os""" |
||||
Style = r"""Lu = -HsL -oa "-f%n %K %{bold}U %{italic}G %P %S %A %f%R""" |
||||
Style = r"""Lm = -HsL -om "-f%n %K %{bold}U %{italic}G %P %S %M %f%R""" |
||||
Style = r"""Lt = -HsL -om "-f%n %K %{bold}U %{italic}G %P %S %M %f%R""" |
||||
Style = r"""Lv = -HsL -ov "-f%n %K %{bold}U %{italic}G %P %S %V %f%R""" |
||||
Style = r"""Lc = -HsL -oc "-f%n %K %{bold}U %{italic}G %P %S %C %f%R""" |
||||
Style = r"""Lb = -HsL -ob "-f%n %K %{bold}U %{italic}G %P %S %B %f%R""" |
||||
#All but rdev. 4 time stamps => either terse file ages | wide terminals. |
||||
Style = r"""LLa = -He./ "-f%n %o %S %P %{bold}U %{italic}G %B %C %M %A %f%R""" |
||||
Style = r"""LL = -HsLLa -xdot""" |
||||
Style = r"""LLai = -He./ "-f%i %n %o %S %P %{bold}U %{italic}G %B %C %M %A %f%R""" |
||||
Style = r"""LLi = -HsLLai -xdot""" |
||||
Style = r"""debug = -H "-f%0%1%2%3%4%5%6%7%8%9%.%/ %f%R""" |
||||
#Almost exactly GNU ls -lA --no-color |
||||
Style = r"""gls = "-tp1g -> " --ageFmt,= --ageFmt,= "-a-15778476@%b %e %Y" "-a-0@%b %e %H:%M" -of "-f%l%p%Q %n %U %G %S %m %f%r""" |
||||
|
||||
glyph = "▶ " |
||||
order = 0134EN #Default sort order: kind-order0,1; fmtKindNum0,1; longExt,Nm |
||||
format = %f |
Loading…
Reference in new issue