-
Notifications
You must be signed in to change notification settings - Fork 0
/
.dircolors
147 lines (128 loc) · 5.33 KB
/
.dircolors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!/usr/bin/env bash
#
# 888 d8b 88
# 888 Y8P 888
# 888 888
# .d88888 888 888d888 .d8888b .d88b. 888 .d88b. 888d888 .d8888b
# d88" 888 888 888P" d88P" d88""88b 888 d88""88b 888P" 88K
# 888 888 888 888 888 888 888 888 888 888 888 "Y8888b.
# d8b Y88b 888 888 888 Y88b. Y88..88P 888 Y88..88P 888 X88
# Y8P "Y88888 888 888 "Y8888P "Y88P" 888 "Y88P" 888 88888P'
#
# -------------------------------------------------------------------------
# Version: 0.1
# File: .dircolors
# Source: https://github.com/devpunks
# Author: Ahmid-Ra (github.com/snuggs)
# Maintainer: devPunks <https://github.com/devpunks>
# Description: LS_COLORS configuration
# -------------------------------------------------------------------------
# - https://geoff.greer.fm/lscolors/
# - https://linux.die.net/man/1/dircolors
# - https://github.com/trapd00r/LS_COLORS
# - https://gist.github.com/thomd/7667642
# - https://github.com/xonsh/xonsh/issues/3608
# - https://unix.stackexchange.com/q/94299
# - http://bigsoft.co.uk/blog/2008/04/11/configuring-ls_colors
# - https://github.com/coreutils/coreutils/blob/master/src/dircolors.c
# - https://github.com/coreutils/coreutils/blob/master/src/ls.c#L592-L606
# - https://github.com/RobertAudi/.dotfiles/blob/master/docs/cheat-sheets/ls-colors-cheat-sheet.txt
# =========================================================================
# {{{ Style Codes
# =========================================================================
# 0 = Default Colour
# 1 = Bold
# 2 = Dim
# 3 = Italic
# 4 = Underlined
# 5 = Flashing Text
# 7 = Reverse Field
# 8 = Concealed
# 9 = Strikethrough
#
# }}}
# =========================================================================
# {{{ Color Codes
# =========================================================================
# 30 = Black
# 31 = Red
# 32 = Green
# 33 = Yellow
# 34 = Blue
# 35 = Purple
# 36 = Cyan
# 37 = Off White
# 40 = Black Background
# 41 = Red Background
# 42 = Green Background
# 43 = Yellow Background
# 44 = Blue Background
# 45 = Purple Background
# 46 = Cyan Background
# 47 = Off White Background
# 90 = Dark Grey
# 91 = Light Red
# 92 = Light Green
# 93 = Yellow
# 94 = Light Blue
# 95 = Light Purple
# 96 = Turquoise
# 97 = White
# 100 = Dark Grey Background
# 101 = Light Red Background
# 102 = Light Green Background
# 103 = Yellow Background
# 104 = Light Blue Background
# 105 = Light Purple Background
# 106 = Turquoise Background
# 106 = White Background
#
# }}}
# =========================================================================
# {{{ Types
# =========================================================================
# TODO: Works TOO good :ec=31:rs=31:lc=0:rc=0:cl=3
#
# no - Normal
# cl - C_CLR_TO_EOL - see grep completion
#
# Filetype Indicators ----
# bd - C_BLK - Block (buffered) special file
# cd - C_CHR - Character (unbuffered) special file
# di - C_DIR - Directory
# ex - C_EXEC - File which is executable (ie. has 'x' set in permissions).
# pi - C_FIFO - Fifo file
# fi - C_FILE - File
# ln - C_LINK - Symbolic Link
# or - C_ORPHAN - Symbolic Link pointing to a non-existent file (orphan)
# so - C_SOCK - Socket file
#
# Links ------------------
# ca - C_CAP
# do - C_DOOR
# mh - C_MULTIHARDLINK
# mi - C_MISSING - Symbolic link to non-existent file (visible when you type ls -l)
#
# Permittable ------------
# sg - C_SETGID
# su - C_SETUID
# st - C_STICKY
#
# }}}
# =========================================================================
# {{{ Functions
# =========================================================================
function default () { printf '*=1:'; }
function scripts () { printf ':*.bash=1;4:*.sh=1;4:*rc=2;3:'; }
function ls_colors () { printf ':*LS_COLORS=2;3;4;7:*dircolors=2;3;4;7:'; }
function docs () { printf ':*README=2;7:*.md=7:*.markdown=7:*NOTES=7:*.h=1;3:*.sample=3:'; }
function dotfiles () { printf ':*profile=1;2;3:*gitignore=2;3;9:*.gitmodules=2;4:*.gitconfig=2;4:'; }
function historic () { printf ':*history=2;3;9:*.bak=2;3;9:*~=2;3;9:*.swp=2;3;9:*.dpkg-old=2;3;9:'; }
function config () { printf ':*.conf=2;4:*config=2;4:*.json=2;4:*.yml=2;4:*.yaml=2;4:*.toml=2;4:*.properties=2;4:'; }
function auth () { printf '*id_rsa=1;4;7:*.pem=1;4;7:*.pub=3;4:*authorized_keys=3;4;7:*hosts=3;4;7:*.hosts=3;4;7:*known_hosts=3;4;7:'; }
function types () { printf 'bd=101:ca=102:cd=103:do=105:mh=106:mi=1;9:or=108:sg=109:st=110:su=111:no=7:fi=1:di=1;3;4;7;4:ln=3;4;9:pi=1;4;5:so=1;4;7;31:ow=30;42:tw=30;43:ex=1;4:*.pid=4;91:'; }
function archives () { printf ':*.tar=1;4;7:*.tgz=1;4;7:*.arc=1;4;7:*.arj=1;4;7:*.taz=1;4;7:*.lha=1;4;7:*.lz4=1;4;7:*.lzh=1;4;7:*.lzma=1;4;7:*.tlz=1;4;7:*.txz=1;4;7:*.tzo=1;4;7:*.t7z=1;4;7:*.zip=1;4;7:*.z=1;4;7:*.dz=1;4;7:*.gz=1;4;7:*.lrz=1;4;7:*.lz=1;4;7:*.lzo=1;4;7:*.xz=1;4;7:*.zst=1;4;7:*.tzst=1;4;7:*.bz2=1;4;7:*.bz=1;4;7:*.tbz=1;4;7:*.tbz2=1;4;7:*.tz=1;4;7:*.deb=1;4;7:*.rpm=1;4;7:*.jar=1;4;7:*.war=1;4;7:*.ear=1;4;7:*.sar=1;4;7:*.rar=1;4;7:*.alz=1;4;7:*.ace=1;4;7:*.zoo=1;4;7:*.cpio=1;4;7:*.7z=1;4;7:*.rz=1;4;7:*.cab=1;4;7:*.wim=1;4;7:*.swm=1;4;7:*.dwm=1;4;7:*.esd=1;4;7:'; }
# }}}
export LS_COLORS="$( default && ls_colors && dotfiles && auth && config && scripts && historic && archives && docs && types )"
echo && echo 'devPunks😈studio .dircolors'
# vim: foldmethod=marker