Skip to content

Commit

Permalink
feat: Update core types
Browse files Browse the repository at this point in the history
* Reorder core filetypes as displayed by: `dircolors --print-database`
* Add new core filetypes:
  * reset_to_normal
  * multi_hard_link
  * door
  * setuid
  * setgid

See-Also: #39
  • Loading branch information
ixti authored and sharkdp committed Jan 26, 2022
1 parent 5e06bf2 commit 9fa6b56
Show file tree
Hide file tree
Showing 12 changed files with 360 additions and 246 deletions.
27 changes: 13 additions & 14 deletions config/filetypes.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
core:
normal_text: [$no]
regular_file: [$fi]
reset_to_normal: [$rs]
directory: [$di]

executable_file: [$ex]

symlink: [$ln]
broken_symlink: [$or]
missing_symlink_target: [$mi]

multi_hard_link: [$mh]
fifo: [$pi]
socket: [$so]

character_device: [$cd]
door: [$do]
block_device: [$bd]

normal_text: [$no]

sticky: [$st]

other_writable: [$ow]
character_device: [$cd]
broken_symlink: [$or]
missing_symlink_target: [$mi]
setuid: [$su]
setgid: [$sg]
file_with_capability: [$ca]
sticky_other_writable: [$tw]
other_writable: [$ow]
sticky: [$st]
executable_file: [$ex]

text:
special:
Expand Down
47 changes: 28 additions & 19 deletions themes/ayu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@ colors:
lightgray: 'aaa'

core:
normal_text: {}
regular_file: {}
reset_to_normal: {}

directory:
foreground: blue

executable_file:
foreground: sienna
font-style: bold

symlink:
foreground: pink

broken_symlink:
foreground: black
background: sienna
missing_symlink_target:
foreground: black
background: sienna
multi_hard_link: {}

fifo:
foreground: black
Expand All @@ -43,25 +36,41 @@ core:
foreground: black
background: pink

door:
foreground: black
background: pink

block_device:
foreground: black
background: sienna

character_device:
foreground: black
background: lime

block_device:
broken_symlink:
foreground: black
background: sienna

missing_symlink_target:
foreground: black
background: sienna

normal_text:
{}
setuid: {}

setgid: {}

file_with_capability: {}

sticky_other_writable: {}

sticky:
{}
other_writable: {}

sticky_other_writable:
{}
sticky: {}

other_writable:
{}
executable_file:
foreground: sienna
font-style: bold

text:
special:
Expand Down
51 changes: 30 additions & 21 deletions themes/iceberg-dark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,17 @@ colors:
darkergray: '36384a'

core:
normal_text: {}
regular_file: {}
reset_to_normal: {}

directory:
foreground: blue

executable_file:
foreground: red
font-style: bold

symlink:
foreground: pink

broken_symlink:
foreground: black
background: red
missing_symlink_target:
foreground: black
background: red
multi_hard_link: {}

fifo:
foreground: black
Expand All @@ -41,25 +34,41 @@ core:
foreground: black
background: pink

character_device:
foreground: pink
background: darkergray
door:
foreground: black
background: pink

block_device:
foreground: cyan
background: darkergray

normal_text:
{}
character_device:
foreground: pink
background: darkergray

broken_symlink:
foreground: black
background: red

missing_symlink_target:
foreground: black
background: red

setuid: {}

setgid: {}

file_with_capability: {}

other_writable:
{}
sticky_other_writable: {}

sticky:
{}
other_writable: {}

sticky_other_writable:
{}
sticky: {}

executable_file:
foreground: red
font-style: bold

text:
special:
Expand Down
48 changes: 28 additions & 20 deletions themes/jellybeans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,48 +27,56 @@ colors:
dark_green: "556633"

core:
normal_text: {}
regular_file: {}
reset_to_normal: {}

directory:
foreground: lilac

executable_file:
foreground: red_orange
font-style: bold

symlink:
foreground: bright_orange

broken_symlink:
foreground: bright_orange
background: dark_red
missing_symlink_target:
foreground: bright_orange
background: dark_red
multi_hard_link: {}

fifo:
foreground: pink

socket:
foreground: pink

character_device:
foreground: red
door:
foreground: pink

block_device:
foreground: red

normal_text:
{}
character_device:
foreground: red

broken_symlink:
foreground: bright_orange
background: dark_red

missing_symlink_target:
foreground: bright_orange
background: dark_red

sticky:
{}
setuid: {}

sticky_other_writable:
{}
setgid: {}

other_writable:
{}
file_with_capability: {}

sticky_other_writable: {}

other_writable: {}

sticky: {}

executable_file:
foreground: red_orange
font-style: bold

text:
special:
Expand Down
56 changes: 35 additions & 21 deletions themes/lava.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,62 +18,76 @@ colors:
chardonnay: 'FFC373'

core:
normal_text:
foreground: base0

regular_file:
foreground: base0

reset_to_normal:
foreground: base0

directory:
foreground: orangedir
font-style: bold

executable_file:
foreground: vermilion
font-style: bold

symlink:
foreground: orangedir
font-style: underline

broken_symlink:
foreground: background_color
background: kourkinova
font-style: bold
multi_hard_link:
foreground: base0

missing_symlink_target:
fifo:
foreground: background_color
background: kourkinova
font-style: bold

fifo:
socket:
foreground: background_color
background: kourkinova
font-style: bold

socket:
door:
foreground: background_color
background: kourkinova
font-style: bold

character_device:
block_device:
foreground: yellow
background: base2
font-style: bold

block_device:
character_device:
foreground: yellow
background: base2
font-style: bold

normal_text:
foreground: base0
broken_symlink:
foreground: background_color
background: kourkinova
font-style: bold

missing_symlink_target:
foreground: background_color
background: kourkinova
font-style: bold

setuid: {}

setgid: {}

other_writable:
{}
file_with_capability: {}

sticky:
{}
sticky_other_writable: {}

sticky_other_writable:
{}
other_writable: {}

sticky: {}

executable_file:
foreground: vermilion
font-style: bold

text:
special:
Expand Down

0 comments on commit 9fa6b56

Please sign in to comment.