eza_colors(5)
π eza_colors(5) π
okay bestie, welcome to the eza_colors(5) manual page, this is a File Formats Manual situation and it's literally all about making your terminal look cute. sit down, grab a strawberry drink, let's go π
β¨ NAME β¨
eza_colors β customising the file and UI colours of eza π
πΈ SYNOPSIS πΈ
The EZA_COLORS environment variable can be used to customise the colours that eza uses to highlight file names, file metadata, and parts of the UI. no cap.
You can use the dircolors program to generate a script that sets the variable from an input file, or if you don't mind editing long strings of text, you can just type it out directly. bestie, it's giving arts and crafts but for your shell. These variables have the following structure:
- A list of key-value pairs separated by
=, such as*.txt=32. - Multiple ANSI formatting codes are separated by
;, such as*.txt=32;1;4. - Finally, multiple pairs are separated by
:, such as*.txt=32:*.mp3=1;35.
The key half of the pair can either be a two-letter code or a file glob, and anything that's not a valid code will be treated as a glob, including keys that happen to be two letters long. yep, even the two-letter-looking ones, the vibes do not lie π
For backwards compatibility EXA_COLORS environment variables is checked if EZA_COLORS is unset. (yes the grammar is a little wild, we love her anyway)
π EXAMPLES π
EZA_COLORS="uu=0:gu=0"β Disable the "current user" highlightingEZA_COLORS="da=32"β Turn the date column greenEZA_COLORS="Vagrantfile=1;4;33"β Highlight VagrantfilesEZA_COLORS="*.zip=38;5;125"β Override the existing zip colourEZA_COLORS="*.md=38;5;121:*.log=38;5;248"β Markdown files a shade of green, log files a shade of grey
π LIST OF CODES π
LS_COLORS can use these ten codes:
diβ directoriesexβ executable filesfiβ regular filespiβ named pipessoβ socketsbdβ block devicescdβ character deviceslnβ symlinksorβ symlinks with no target
EZA_COLORS can use many more:
ocβ the permissions displayed as octalurβ the user-read permission bituwβ the user-write permission bituxβ the user-execute permission bit for regular filesueβ the user-execute for other file kindsgrβ the group-read permission bitgwβ the group-write permission bitgxβ the group-execute permission bittrβ the others-read permission bittwβ the others-write permission bittxβ the others-execute permission bitsuβ setuid, setgid, and sticky permission bits for filessfβ setuid, setgid, and sticky for other file kindsxaβ the extended attribute indicatorsnβ the numbers of a file's size (setsnb,nk,nm,ngandnt)nbβ the numbers of a file's size if it is lower than 1 KB/Kibnkβ the numbers of a file's size if it is between 1 KB/KiB and 1 MB/MiBnmβ the numbers of a file's size if it is between 1 MB/MiB and 1 GB/GiBngβ the numbers of a file's size if it is between 1 GB/GiB and 1 TB/TiBntβ the numbers of a file's size if it is 1 TB/TiB or highersbβ the units of a file's size (setsub,uk,um,ugandut)ubβ the units of a file's size if it is lower than 1 KB/Kibukβ the units of a file's size if it is between 1 KB/KiB and 1 MB/MiBumβ the units of a file's size if it is between 1 MB/MiB and 1 GB/GiBugβ the units of a file's size if it is between 1 GB/GiB and 1 TB/TiButβ the units of a file's size if it is 1 TB/TiB or higherdfβ a device's major IDdsβ a device's minor IDuuβ a user that's youuRβ a user that's rootunβ a user that's someone elseguβ a group that you belong togRβ a group related to rootgnβ a group you aren't a member oflcβ a number of hard linkslmβ a number of hard links for a regular file with at least twogaβ a new flag in Gitgmβ a modified flag in Gitgdβ a deleted flag in Gitgvβ a renamed flag in Gitgtβ a modified metadata flag in Gitgiβ an ignored flag in Gitgcβ a conflicted flag in GitGmβ main branch of repoGoβ other branch of repoGcβ clean branch of repoGdβ dirty branch of repoxxβ "punctuation", including many background UI elementsdaβ a file's dateinβ a file's inode numberblβ a file's number of blockshdβ the header row of a tablelpβ the path of a symlinkccβ an escaped character in a filenamebOβ the overlay style for broken symlink pathsspβ special (not file, dir, mount, exec, pipe, socket, block device, char device, or link)mpβ a mount pointimβ a regular file that is an imageviβ a regular file that is a videomuβ a regular file that is lossy musicloβ a regular file that is lossless musiccrβ a regular file that is related to cryptography (ex: key or certificate)doβ a regular file that is a document (ex: office suite document or PDF)coβ a regular file that is compressedtmβ a regular file that is temporary (ex: a text editor's backup file)cmβ a regular file that is a compilation artifact (ex: Java class file)buβ a regular file that is used to build a project (ex: Makefile)scβ a regular file that is source codeicβ the icon (this is optional, if not set the icon color matches the file name's)Snβ No security context on a fileSuβ SELinux userSrβ SELinux roleStβ SELinux typeSlβ SELinux levelffβ BSD file flags
Values in EXA_COLORS override those given in LS_COLORS, so you don't need to re-write an existing LS_COLORS variable with proprietary extensions. iconic, honestly.
π¦ LIST OF STYLES π¦
Unlike some versions of ls, the given ANSI values must be valid colour codes: eza won't just print out whichever characters are given. she has standards π
The codes accepted by eza are:
1β for bold2β for dimmed3β for italic4β for underline31β for red text32β for green text33β for yellow text34β for blue text35β for purple text36β for cyan text37β for white text90β for dark gray text91β for bright red text92β for bright green text93β for bright yellow text94β for bright blue text95β for bright purple text96β for bright cyan text97β for bright text38;5;nnnβ for a colour from 0 to 255 (replace thennnpart)
Many terminals will treat bolded text as a different colour, or at least provide the option to. ngl that's just how they are.
eza provides its own built-in set of file extension mappings that cover a large range of common file extensions, including documents, archives, media, and temporary files. Any mappings in the environment variables will override this default set: running eza with LS_COLORS="*.zip=32" will turn zip files green but leave the colours of other compressed files alone.
You can also disable this built-in set entirely by including a reset entry at the beginning of EZA_COLORS. So setting EZA_COLORS="reset:*.txt=31" will highlight only text files; setting EZA_COLORS="reset" will highlight nothing. main character energy: choosing β¨nothingβ¨.
π AUTHOR π
eza is maintained by Christina SΓΈrensen and many other contributors. π«Ά
- Source code:
https://github.com/eza-community/eza - Contributors:
https://github.com/eza-community/eza/graphs/contributors
Our infinite thanks to Benjamin 'ogham' Sago and all the other contributors of exa, from which eza was forked. the lineage?? ate. π
π SEE ALSO π
ok that's the whole page bestie, you're officially a colour-config girlie now π
this was eza_colors(5) from the $version era β mwah, go make your terminal pretty πβ¨
π¦ where this page comes from
- fedora 44: eza 0.23.4-1.fc44 Β· EUPL-1.2
- fedora 44: eza 0.23.5-1.fc44 Β· EUPL-1.2
- ubuntu resolute: eza 0.23.4-1ubuntu1 Β· EUPL-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms