pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/eza



Module Name:    pkgsrc
Committed By:   pin
Date:           Sat Sep  9 20:16:41 UTC 2023

Modified Files:
        pkgsrc/sysutils/eza: Makefile PLIST distinfo
Added Files:
        pkgsrc/sysutils/eza/files: eza.1 eza_colors-explanation.5 eza_colors.5

Log Message:
sysutils/eza: install man pages


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/eza/Makefile \
    pkgsrc/sysutils/eza/PLIST pkgsrc/sysutils/eza/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/eza/files/eza.1 \
    pkgsrc/sysutils/eza/files/eza_colors-explanation.5 \
    pkgsrc/sysutils/eza/files/eza_colors.5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/eza/Makefile
diff -u pkgsrc/sysutils/eza/Makefile:1.1 pkgsrc/sysutils/eza/Makefile:1.2
--- pkgsrc/sysutils/eza/Makefile:1.1    Sat Sep  9 17:28:00 2023
+++ pkgsrc/sysutils/eza/Makefile        Sat Sep  9 20:16:41 2023
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2023/09/09 17:28:00 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2023/09/09 20:16:41 pin Exp $
 
 DISTNAME=      eza-0.11.0
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=eza-community/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -14,9 +15,21 @@ LICENSE=     mit
 
 USE_TOOLS+=    pkg-config
 
+INSTALLATION_DIRS=     ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
+
 MAKE_ENV+=     OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
 RUSTFLAGS+=    -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
 
+post-build:
+       ${CP} ${FILESDIR}/eza.1 ${WRKDIR}/eza.1
+       ${CP} ${FILESDIR}/eza_colors-explanation.5 ${WRKDIR}/eza_colors-explanation.5
+       ${CP} ${FILESDIR}/eza_colors.5 ${WRKDIR}/eza_colors.5
+
+post-install:
+       ${INSTALL_MAN} ${WRKDIR}/eza.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKDIR}/eza_colors-explanation.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+       ${INSTALL_MAN} ${WRKDIR}/eza_colors.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+
 .include "../../lang/rust/cargo.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/eza/PLIST
diff -u pkgsrc/sysutils/eza/PLIST:1.1 pkgsrc/sysutils/eza/PLIST:1.2
--- pkgsrc/sysutils/eza/PLIST:1.1       Sat Sep  9 17:28:00 2023
+++ pkgsrc/sysutils/eza/PLIST   Sat Sep  9 20:16:41 2023
@@ -1,2 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2023/09/09 17:28:00 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2023/09/09 20:16:41 pin Exp $
 bin/eza
+man/man1/eza.1
+man/man5/eza_colors-explanation.5
+man/man5/eza_colors.5
Index: pkgsrc/sysutils/eza/distinfo
diff -u pkgsrc/sysutils/eza/distinfo:1.1 pkgsrc/sysutils/eza/distinfo:1.2
--- pkgsrc/sysutils/eza/distinfo:1.1    Sat Sep  9 17:28:00 2023
+++ pkgsrc/sysutils/eza/distinfo        Sat Sep  9 20:16:41 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2023/09/09 17:28:00 wiz Exp $
+$NetBSD: distinfo,v 1.2 2023/09/09 20:16:41 pin Exp $
 
 BLAKE2s (ansi_term-0.12.1.crate) = 9d7961fca7b2680f17660048cf2d6171faa0def807ea66b5b5b9110f0623a12f
 SHA512 (ansi_term-0.12.1.crate) = b840e28b3e7700689a69a39659b1e066560078dd4a58326b91a028915819e7af883399ee53e920db68fd974c58d35bb1ddf8d427af5937d5f696f57c4376b671
@@ -213,4 +213,4 @@ Size (windows_x86_64_msvc-0.48.5.crate) 
 BLAKE2s (zoneinfo_compiled-0.5.1.crate) = ed95de48af02f72050d6ad665729a4385475666612f6443eb652811fbc47d993
 SHA512 (zoneinfo_compiled-0.5.1.crate) = 4ad46983742ed37246f3ba5538fdf3a4dfc444ec635ffaa51d5daffa70c14e1876e703cd0a1f077e6b324e0d44d4b5e1e710b3543636fa9f33d509fa8bce333c
 Size (zoneinfo_compiled-0.5.1.crate) = 8837 bytes
-SHA1 (patch-.._vendor_openssl-src-111.26.0+1.1.1u_src_lib.rs) = 903e6e939d59db5bcd10f7d2c92fc36b6fa51a44
+SHA1 (patch-vendor_openssl-src-111.26.0+1.1.1u_src_lib.rs) = 903e6e939d59db5bcd10f7d2c92fc36b6fa51a44

Added files:

Index: pkgsrc/sysutils/eza/files/eza.1
diff -u /dev/null pkgsrc/sysutils/eza/files/eza.1:1.1
--- /dev/null   Sat Sep  9 20:16:41 2023
+++ pkgsrc/sysutils/eza/files/eza.1     Sat Sep  9 20:16:41 2023
@@ -0,0 +1,346 @@
+.nh
+.TH eza(1) v0.9.0
+
+.SH NAME
+.PP
+eza — a modern replacement for ls
+
+
+.SH SYNOPSIS
+.PP
+\fB\fCeza [options] [files...]\fR
+
+.PP
+\fBeza\fP is a modern replacement for \fB\fCls\fR\&.
+It uses colours for information by default, helping you distinguish between many types of files, such as whether you are the owner, or in the owning group.
+
+.PP
+It also has extra features not present in the original \fB\fCls\fR, such as viewing the Git status for a directory, or recursing into directories with a tree view.
+
+
+.SH EXAMPLES
+.TP
+\fB\fCeza\fR
+Lists the contents of the current directory in a grid.
+
+.TP
+\fB\fCeza --oneline --reverse --sort=size\fR
+Displays a list of files with the largest at the top.
+
+.TP
+\fB\fCeza --long --header --inode --git\fR
+Displays a table of files with a header, showing each file’s metadata, inode, and Git status.
+
+.TP
+\fB\fCeza --long --tree --level=3\fR
+Displays a tree of files, three levels deep, as well as each file’s metadata.
+
+
+.SH DISPLAY OPTIONS
+.TP
+\fB\fC-1\fR, \fB\fC--oneline\fR
+Display one entry per line.
+
+.TP
+\fB\fC-F\fR, \fB\fC--classify\fR
+Display file kind indicators next to file names.
+
+.TP
+\fB\fC-G\fR, \fB\fC--grid\fR
+Display entries as a grid (default).
+
+.TP
+\fB\fC-l\fR, \fB\fC--long\fR
+Display extended file metadata as a table.
+
+.TP
+\fB\fC-R\fR, \fB\fC--recurse\fR
+Recurse into directories.
+
+.TP
+\fB\fC-T\fR, \fB\fC--tree\fR
+Recurse into directories as a tree.
+
+.TP
+\fB\fC-x\fR, \fB\fC--across\fR
+Sort the grid across, rather than downwards.
+
+.TP
+\fB\fC--color\fR, \fB\fC--colour=WHEN\fR
+When to use terminal colours.
+Valid settings are ‘\fB\fCalways\fR’, ‘\fB\fCautomatic\fR’, and ‘\fB\fCnever\fR’.
+
+.TP
+\fB\fC--color-scale\fR, \fB\fC--colour-scale\fR
+Colour file sizes on a scale.
+
+.TP
+\fB\fC--icons\fR
+Display icons next to file names.
+
+.TP
+\fB\fC--no-icons\fR
+Don't display icons. (Always overrides --icons)
+
+.TP
+\fB\fC--hyperlink\fR
+Display entries as hyperlinks
+
+.TP
+\fB\fC-w\fR, \fB\fC--width=COLS\fR
+Set screen width in columns.
+
+
+.SH FILTERING AND SORTING OPTIONS
+.TP
+\fB\fC-a\fR, \fB\fC--all\fR
+Show hidden and “dot” files.
+Use this twice to also show the ‘\fB\fC\&.\fR’ and ‘\fB\fC\&..\fR’ directories.
+
+.TP
+\fB\fC-d\fR, \fB\fC--list-dirs\fR
+List directories as regular files, rather than recursing and listing their contents.
+
+.TP
+\fB\fC-L\fR, \fB\fC--level=DEPTH\fR
+Limit the depth of recursion.
+
+.TP
+\fB\fC-r\fR, \fB\fC--reverse\fR
+Reverse the sort order.
+
+.TP
+\fB\fC-s\fR, \fB\fC--sort=SORT_FIELD\fR
+Which field to sort by.
+
+.PP
+Valid sort fields are ‘\fB\fCname\fR’, ‘\fB\fCName\fR’, ‘\fB\fCextension\fR’, ‘\fB\fCExtension\fR’, ‘\fB\fCsize\fR’, ‘\fB\fCmodified\fR’, ‘\fB\fCchanged\fR’, ‘\fB\fCaccessed\fR’, ‘\fB\fCcreated\fR’, 
‘\fB\fCinode\fR’, ‘\fB\fCtype\fR’, and ‘\fB\fCnone\fR’.
+
+.PP
+The \fB\fCmodified\fR sort field has the aliases ‘\fB\fCdate\fR’, ‘\fB\fCtime\fR’, and ‘\fB\fCnewest\fR’, and its reverse order has the aliases ‘\fB\fCage\fR’ and ‘\fB\fColdest\fR’.
+
+.PP
+Sort fields starting with a capital letter will sort uppercase before lowercase: ‘A’ then ‘B’ then ‘a’ then ‘b’. Fields starting with a lowercase letter will mix them: ‘A’ then ‘a’ then ‘B’ then ‘b’.
+
+.TP
+\fB\fC-I\fR, \fB\fC--ignore-glob=GLOBS\fR
+Glob patterns, pipe-separated, of files to ignore.
+
+.TP
+\fB\fC--git-ignore\fR [if eza was built with git support]
+Do not list files that are ignored by Git.
+
+.TP
+\fB\fC--group-directories-first\fR
+List directories before other files.
+
+.TP
+\fB\fC-D\fR, \fB\fC--only-dirs\fR
+List only directories, not files.
+
+
+.SH LONG VIEW OPTIONS
+.PP
+These options are available when running with \fB\fC--long\fR (\fB\fC-l\fR):
+
+.TP
+\fB\fC-b\fR, \fB\fC--binary\fR
+List file sizes with binary prefixes.
+
+.TP
+\fB\fC-B\fR, \fB\fC--bytes\fR
+List file sizes in bytes, without any prefixes.
+
+.TP
+\fB\fC--changed\fR
+Use the changed timestamp field.
+
+.TP
+\fB\fC-g\fR, \fB\fC--group\fR
+List each file’s group.
+
+.TP
+\fB\fC-h\fR, \fB\fC--header\fR
+Add a header row to each column.
+
+.TP
+\fB\fC-H\fR, \fB\fC--links\fR
+List each file’s number of hard links.
+
+.TP
+\fB\fC-i\fR, \fB\fC--inode\fR
+List each file’s inode number.
+
+.TP
+\fB\fC-m\fR, \fB\fC--modified\fR
+Use the modified timestamp field.
+
+.TP
+\fB\fC-M\fR, \fB\fC--mounts\fR
+Show mount details (Linux only)
+
+.TP
+\fB\fC-n\fR, \fB\fC--numeric\fR
+List numeric user and group IDs.
+
+.TP
+\fB\fC-S\fR, \fB\fC--blocksize\fR
+List each file’s size of allocated file system blocks.
+
+.TP
+\fB\fC-t\fR, \fB\fC--time=WORD\fR
+Which timestamp field to list.
+
+Valid timestamp fields are ‘\fB\fCmodified\fR’, ‘\fB\fCchanged\fR’, ‘\fB\fCaccessed\fR’, and ‘\fB\fCcreated\fR’.
+
+.TP
+\fB\fC--time-style=STYLE\fR
+How to format timestamps.
+
+Valid timestamp styles are ‘\fB\fCdefault\fR’, ‘\fB\fCiso\fR’, ‘\fB\fClong-iso\fR’, ‘\fB\fCfull-iso\fR’, and ‘\fB\fCrelative\fR’.
+
+.TP
+\fB\fC-u\fR, \fB\fC--accessed\fR
+Use the accessed timestamp field.
+
+.TP
+\fB\fC-U\fR, \fB\fC--created\fR
+Use the created timestamp field.
+
+.TP
+\fB\fC--no-permissions\fR
+Suppress the permissions field.
+
+.TP
+\fB\fC-o\fR, \fB\fC--octal-permissions\fR
+List each file's permissions in octal format.
+
+.TP
+\fB\fC--no-filesize\fR
+Suppress the file size field.
+
+.TP
+\fB\fC--no-user\fR
+Suppress the user field.
+
+.TP
+\fB\fC--no-time\fR
+Suppress the time field.
+
+.TP
+\fB\fC-@\fR, \fB\fC--extended\fR
+List each file’s extended attributes and sizes.
+
+.TP
+\fB\fC-Z\fR, \fB\fC--context\fR
+List each file's security context.
+
+.TP
+\fB\fC--git\fR  [if eza was built with git support]
+List each file’s Git status, if tracked.
+
+.PP
+This adds a two-character column indicating the staged and unstaged statuses respectively. The status character can be ‘\fB\fC-\fR’ for not modified, ‘\fB\fCM\fR’ for a modified file, ‘\fB\fCN\fR’ 
for a new file, ‘\fB\fCD\fR’ for deleted, ‘\fB\fCR\fR’ for renamed, ‘\fB\fCT\fR’ for type-change, ‘\fB\fCI\fR’ for ignored, and ‘\fB\fCU\fR’ for conflicted.
+
+.PP
+Directories will be shown to have the status of their contents, which is how ‘deleted’ is possible: if a directory contains a file that has a certain status, it will be shown to have that status.
+
+.TP
+\fB\fC--no-git\fR
+Don't show Git status (always overrides \fB\fC--git\fR, \fB\fC--git-repos\fR, \fB\fC--git-repos-no-status\fR)
+
+
+.SH ENVIRONMENT VARIABLES
+.PP
+eza responds to the following environment variables:
+
+.SH \fB\fCCOLUMNS\fR
+.PP
+Overrides the width of the terminal, in characters, however, \fB\fC-w\fR takes precedence.
+
+.PP
+For example, ‘\fB\fCCOLUMNS=80 eza\fR’ will show a grid view with a maximum width of 80 characters.
+
+.PP
+This option won’t do anything when eza’s output doesn’t wrap, such as when using the \fB\fC--long\fR view.
+
+.SH \fB\fCEXA_STRICT\fR
+.PP
+Enables \fIstrict mode\fP, which will make eza error when two command-line options are incompatible.
+
+.PP
+Usually, options can override each other going right-to-left on the command line, so that eza can be given aliases: creating an alias ‘\fB\fCeza=eza --sort=ext\fR’ then running ‘\fB\fCeza 
--sort=size\fR’ with that alias will run ‘\fB\fCeza --sort=ext --sort=size\fR’, and the sorting specified by the user will override the sorting specified by the alias.
+
+.PP
+In strict mode, the two options will not co-operate, and eza will error.
+
+.PP
+This option is intended for use with automated scripts and other situations where you want to be certain you’re typing in the right command.
+
+.SH \fB\fCEXA_GRID_ROWS\fR
+.PP
+Limits the grid-details view (‘\fB\fCeza --grid --long\fR’) so it’s only activated when at least the given number of rows of output would be generated.
+
+.PP
+With widescreen displays, it’s possible for the grid to look very wide and sparse, on just one or two lines with none of the columns lining up.
+By specifying a minimum number of rows, you can only use the view if it’s going to be worth using.
+
+.SH \fB\fCEXA_ICON_SPACING\fR
+.PP
+Specifies the number of spaces to print between an icon (see the ‘\fB\fC--icons\fR’ option) and its file name.
+
+.PP
+Different terminals display icons differently, as they usually take up more than one character width on screen, so there’s no “standard” number of spaces that eza can use to separate an icon from 
text. One space may place the icon too close to the text, and two spaces may place it too far away. So the choice is left up to the user to configure depending on their terminal emulator.
+
+.SH \fB\fCNO_COLOR\fR
+.PP
+Disables colours in the output (regardless of its value). Can be overridden by \fB\fC--color\fR option.
+
+.PP
+See \fB\fChttps://no-color.org/\fR for details.
+
+.SH \fB\fCLS_COLORS\fR, \fB\fCEXA_COLORS\fR
+.PP
+Specifies the colour scheme used to highlight files based on their name and kind, as well as highlighting metadata and parts of the UI.
+
+.PP
+For more information on the format of these environment variables, see the eza_colors.5.md
+\[la]eza_colors.5.md\[ra] manual page.
+
+
+.SH EXIT STATUSES
+.TP
+0
+If everything goes OK.
+
+.TP
+1
+If there was an I/O error during operation.
+
+.TP
+3
+If there was a problem with the command-line arguments.
+
+
+.SH AUTHOR
+.PP
+eza is maintained by Christina Sørensen and many other contributors.
+
+.PP
+\fBSource code:\fP \fB\fChttps://github.com/eza-community/eza\fR \\
+\fBContributors:\fP \fB\fChttps://github.com/eza-community/eza/graphs/contributors\fR
+
+.PP
+Our infinite thanks to Benjamin ‘ogham’ Sago and all the other contributors of exa, from which eza was forked.
+
+
+.SH SEE ALSO
+.RS
+.IP \(bu 2
+eza_colors.5.md
+\[la]eza_colors.5.md\[ra]
+.IP \(bu 2
+eza_colors-explanation.5.md
+\[la]eza_colors-explanation.5.md\[ra]
+
+.RE
Index: pkgsrc/sysutils/eza/files/eza_colors-explanation.5
diff -u /dev/null pkgsrc/sysutils/eza/files/eza_colors-explanation.5:1.1
--- /dev/null   Sat Sep  9 20:16:41 2023
+++ pkgsrc/sysutils/eza/files/eza_colors-explanation.5  Sat Sep  9 20:16:41 2023
@@ -0,0 +1,73 @@
+.nh
+.TH Name
+.PP
+eza_colors-explanation — more details on customizing eza colors
+
+
+.SH Eza Color Explanation
+.PP
+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.
+
+.PP
+Any mappings in the environment variables will override this default set: running eza with \fB\fCLS_COLORS="*.zip=32"\fR will turn zip files green but leave the colours of other compressed files 
alone.
+
+.PP
+You can also disable this built-in set entirely by including a
+\fB\fCreset\fR entry at the beginning of \fB\fCEXA_COLORS\fR\&.
+So setting \fB\fCEXA_COLORS="reset:*.txt=31"\fR will highlight only text
+files; setting \fB\fCEXA_COLORS="reset"\fR will highlight nothing.
+
+.SH Examples
+.RS
+.IP \(bu 2
+Disable the "current user" highlighting: \fB\fCEXA_COLORS="uu=0:gu=0"\fR
+.IP \(bu 2
+Turn the date column green: \fB\fCEXA_COLORS="da=32"\fR
+.IP \(bu 2
+Highlight Vagrantfiles: \fB\fCEXA_COLORS="Vagrantfile=1;4;33"\fR
+.IP \(bu 2
+Override the existing zip colour: \fB\fCEXA_COLORS="*.zip=38;5;125"\fR
+.IP \(bu 2
+Markdown files a shade of green, log files a shade of grey:
+\fB\fCEXA_COLORS="*.md=38;5;121:*.log=38;5;248"\fR
+
+.RE
+
+.SH BUILT-IN EXTENSIONS
+.PP
+"Immediate" files are the files you should look at when downloading and building a project for the first time: READMEs, Makefiles, Cargo.toml, and others.
+They are highlighted in \fIyellow\fP and \fIunderlined\fP\&.
+
+.RS
+.IP \(bu 2
+Images (png, jpeg, gif) are purple.
+.IP \(bu 2
+Videos (mp4, ogv, m2ts) are a slightly purpler purple.
+.IP \(bu 2
+Music (mp3, m4a, ogg) is a deeper purple.
+.IP \(bu 2
+Lossless music (flac, alac, wav) is deeper than \fIthat\fP purple. In general, most media files are some shade of purple.
+.IP \(bu 2
+Cryptographic files (asc, enc, p12) are a faint blue.
+.IP \(bu 2
+Documents (pdf, doc, dvi) are a less faint blue.
+.IP \(bu 2
+Compressed files (zip, tgz, Z) are red.
+.IP \(bu 2
+Temporary files (tmp, swp, ~) are grey.
+.IP \(bu 2
+Compiled files (class, o, pyc) are faint orange. A file is also counted as compiled if it uses a common extension and is
+in the same directory as one of its source files: styles.css will count as compiled when next to styles.less or styles.sass, and scripts.js when next to scripts.ts or scripts.coffee.
+
+.RE
+
+.SH See also
+.RS
+.IP \(bu 2
+eza.1.md
+\[la]eza.1.md\[ra]
+.IP \(bu 2
+eza_colors.5.md
+\[la]eza_colors.5.md\[ra]
+
+.RE
Index: pkgsrc/sysutils/eza/files/eza_colors.5
diff -u /dev/null pkgsrc/sysutils/eza/files/eza_colors.5:1.1
--- /dev/null   Sat Sep  9 20:16:41 2023
+++ pkgsrc/sysutils/eza/files/eza_colors.5      Sat Sep  9 20:16:41 2023
@@ -0,0 +1,371 @@
+.nh
+.TH eza_colors(5) v0.9.0
+
+.SH NAME
+.PP
+eza_colors — customising the file and UI colours of eza
+
+
+.SH SYNOPSIS
+.PP
+The \fB\fCEXA_COLORS\fR environment variable can be used to customise the colours that \fB\fCeza\fR uses to highlight file names, file metadata, and parts of the UI.
+
+.PP
+You can use the \fB\fCdircolors\fR 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. These 
variables have the following structure:
+
+.RS
+.IP \(bu 2
+A list of key-value pairs separated by ‘\fB\fC=\fR’, such as ‘\fB\fC*.txt=32\fR’.
+.IP \(bu 2
+Multiple ANSI formatting codes are separated by ‘\fB\fC;\fR’, such as ‘\fB\fC*.txt=32;1;4\fR’.
+.IP \(bu 2
+Finally, multiple pairs are separated by ‘\fB\fC:\fR’, such as ‘\fB\fC*.txt=32:*.mp3=1;35\fR’.
+
+.RE
+
+.PP
+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.
+
+
+.SH EXAMPLES
+.TP
+\fB\fCEXA_COLORS="uu=0:gu=0"\fR
+Disable the “current user” highlighting
+
+.TP
+\fB\fCEXA_COLORS="da=32"\fR
+Turn the date column green
+
+.TP
+\fB\fCEXA_COLORS="Vagrantfile=1;4;33"\fR
+Highlight Vagrantfiles
+
+.TP
+\fB\fCEXA_COLORS="*.zip=38;5;125"\fR
+Override the existing zip colour
+
+.TP
+\fB\fCEXA_COLORS="*.md=38;5;121:*.log=38;5;248"\fR
+Markdown files a shade of green, log files a shade of grey
+
+
+.SH LIST OF CODES
+.PP
+\fB\fCLS_COLORS\fR can use these ten codes:
+
+.TP
+\fB\fCdi\fR
+directories
+
+.TP
+\fB\fCex\fR
+executable files
+
+.TP
+\fB\fCfi\fR
+regular files
+
+.TP
+\fB\fCpi\fR
+named pipes
+
+.TP
+\fB\fCso\fR
+sockets
+
+.TP
+\fB\fCbd\fR
+block devices
+
+.TP
+\fB\fCcd\fR
+character devices
+
+.TP
+\fB\fCln\fR
+symlinks
+
+.TP
+\fB\fCor\fR
+symlinks with no target
+
+.PP
+\fB\fCEXA_COLORS\fR can use many more:
+
+.TP
+\fB\fCur\fR
+the user-read permission bit
+
+.TP
+\fB\fCuw\fR
+the user-write permission bit
+
+.TP
+\fB\fCux\fR
+the user-execute permission bit for regular files
+
+.TP
+\fB\fCue\fR
+the user-execute for other file kinds
+
+.TP
+\fB\fCgr\fR
+the group-read permission bit
+
+.TP
+\fB\fCgw\fR
+the group-write permission bit
+
+.TP
+\fB\fCgx\fR
+the group-execute permission bit
+
+.TP
+\fB\fCtr\fR
+the others-read permission bit
+
+.TP
+\fB\fCtw\fR
+the others-write permission bit
+
+.TP
+\fB\fCtx\fR
+the others-execute permission bit
+
+.TP
+\fB\fCsu\fR
+setuid, setgid, and sticky permission bits for files
+
+.TP
+\fB\fCsf\fR
+setuid, setgid, and sticky for other file kinds
+
+.TP
+\fB\fCxa\fR
+the extended attribute indicator
+
+.TP
+\fB\fCsn\fR
+the numbers of a file’s size (sets \fB\fCnb\fR, \fB\fCnk\fR, \fB\fCnm\fR, \fB\fCng\fR and \fB\fCnh\fR)
+
+.TP
+\fB\fCnb\fR
+the numbers of a file’s size if it is lower than 1 KB/Kib
+
+.TP
+\fB\fCnk\fR
+the numbers of a file’s size if it is between 1 KB/KiB and 1 MB/MiB
+
+.TP
+\fB\fCnm\fR
+the numbers of a file’s size if it is between 1 MB/MiB and 1 GB/GiB
+
+.TP
+\fB\fCng\fR
+the numbers of a file’s size if it is between 1 GB/GiB and 1 TB/TiB
+
+.TP
+\fB\fCnt\fR
+the numbers of a file’s size if it is 1 TB/TiB or higher
+
+.TP
+\fB\fCsb\fR
+the units of a file’s size (sets \fB\fCub\fR, \fB\fCuk\fR, \fB\fCum\fR, \fB\fCug\fR and \fB\fCuh\fR)
+
+.TP
+\fB\fCub\fR
+the units of a file’s size if it is lower than 1 KB/Kib
+
+.TP
+\fB\fCuk\fR
+the units of a file’s size if it is between 1 KB/KiB and 1 MB/MiB
+
+.TP
+\fB\fCum\fR
+the units of a file’s size if it is between 1 MB/MiB and 1 GB/GiB
+
+.TP
+\fB\fCug\fR
+the units of a file’s size if it is between 1 GB/GiB and 1 TB/TiB
+
+.TP
+\fB\fCut\fR
+the units of a file’s size if it is 1 TB/TiB or higher
+
+.TP
+\fB\fCdf\fR
+a device’s major ID
+
+.TP
+\fB\fCds\fR
+a device’s minor ID
+
+.TP
+\fB\fCuu\fR
+a user that’s you
+
+.TP
+\fB\fCun\fR
+a user that’s someone else
+
+.TP
+\fB\fCgu\fR
+a group that you belong to
+
+.TP
+\fB\fCgn\fR
+a group you aren’t a member of
+
+.TP
+\fB\fClc\fR
+a number of hard links
+
+.TP
+\fB\fClm\fR
+a number of hard links for a regular file with at least two
+
+.TP
+\fB\fCga\fR
+a new flag in Git
+
+.TP
+\fB\fCgm\fR
+a modified flag in Git
+
+.TP
+\fB\fCgd\fR
+a deleted flag in Git
+
+.TP
+\fB\fCgv\fR
+a renamed flag in Git
+
+.TP
+\fB\fCgt\fR
+a modified metadata flag in Git
+
+.TP
+\fB\fCgi\fR
+an ignored flag in Git
+
+.TP
+\fB\fCxx\fR
+“punctuation”, including many background UI elements
+
+.TP
+\fB\fCda\fR
+a file’s date
+
+.TP
+\fB\fCin\fR
+a file’s inode number
+
+.TP
+\fB\fCbl\fR
+a file’s number of blocks
+
+.TP
+\fB\fChd\fR
+the header row of a table
+
+.TP
+\fB\fClp\fR
+the path of a symlink
+
+.TP
+\fB\fCcc\fR
+an escaped character in a filename
+
+.TP
+\fB\fCbO\fR
+the overlay style for broken symlink paths
+
+.TP
+\fB\fCmp\fR
+a mount point
+
+.PP
+Values in \fB\fCEXA_COLORS\fR override those given in \fB\fCLS_COLORS\fR, so you don’t need to re-write an existing \fB\fCLS_COLORS\fR variable with proprietary extensions.
+
+
+.SH LIST OF STYLES
+.PP
+Unlike some versions of \fB\fCls\fR, the given ANSI values must be valid colour codes: eza won’t just print out whichever characters are given.
+
+.PP
+The codes accepted by eza are:
+
+.TP
+\fB\fC1\fR
+for bold
+
+.TP
+\fB\fC4\fR
+for underline
+
+.TP
+\fB\fC31\fR
+for red text
+
+.TP
+\fB\fC32\fR
+for green text
+
+.TP
+\fB\fC33\fR
+for yellow text
+
+.TP
+\fB\fC34\fR
+for blue text
+
+.TP
+\fB\fC35\fR
+for purple text
+
+.TP
+\fB\fC36\fR
+for cyan text
+
+.TP
+\fB\fC37\fR
+for white text
+
+.TP
+\fB\fC38;5;nnn\fR
+for a colour from 0 to 255 (replace the \fB\fCnnn\fR part)
+
+.PP
+Many terminals will treat bolded text as a different colour, or at least provide the option to.
+
+.PP
+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 \fB\fCLS_COLORS="*.zip=32"\fR will turn zip files green but leave the colours of other compressed files 
alone.
+
+.PP
+You can also disable this built-in set entirely by including a \fB\fCreset\fR entry at the beginning of \fB\fCEXA_COLORS\fR\&.
+So setting \fB\fCEXA_COLORS="reset:*.txt=31"\fR will highlight only text files; setting \fB\fCEXA_COLORS="reset"\fR will highlight nothing.
+
+
+.SH AUTHOR
+.PP
+eza is maintained by Christina Sørensen and many other contributors.
+
+.PP
+\fBSource code:\fP \fB\fChttps://github.com/eza-community/eza\fR \\
+\fBContributors:\fP \fB\fChttps://github.com/eza-community/eza/graphs/contributors\fR
+
+.PP
+Our infinite thanks to Benjamin ‘ogham’ Sago and all the other contributors of exa, from which eza was forked.
+
+
+.SH SEE ALSO
+.RS
+.IP \(bu 2
+eza.1.md
+\[la]eza.1.md\[ra]
+.IP \(bu 2
+eza_colors-explanation.5.md
+\[la]eza_colors-explanation.5.md\[ra]
+
+.RE



Home | Main Index | Thread Index | Old Index