Go to file
2023-07-29 05:31:30 +02:00
.github Update GitHub actions Rust version 2023-02-28 22:23:29 -05:00
completions Merge branch 'master' of github.com:cafkafk/zetta into pr-fix-fish-completion-inode 2023-07-29 05:31:30 +02:00
devtools Fix panic on non UTF-8 file when using Git 2021-09-01 22:42:34 +02:00
man fix(man): Update man/zetta_colors.5.md 2023-07-29 00:05:45 +02:00
snap Add snap support for ease of deployment 2017-08-12 22:22:22 -04:00
src fix build 2023-03-07 17:34:35 +01:00
xtests add test for far future dates 2023-03-07 17:34:35 +01:00
.gitignore Ignore all log files (produced by Vagrant) 2021-12-10 00:16:42 +01:00
.rustfmt.toml Batch source formatting 2020-10-10 20:02:55 +01:00
build.rs start renaming exa to zetta 2023-06-16 20:35:10 +02:00
Cargo.lock release relative-datetime 2023-06-16 20:44:06 +02:00
Cargo.toml release relative-datetime 2023-06-16 20:44:06 +02:00
Justfile fix: update man files, just 2023-07-29 00:05:45 +02:00
LICENCE Update LICENCE 2014-07-02 22:07:09 +01:00
README.md fix(doc):fix README.md alignment 2023-07-29 00:06:10 +02:00
rust-toolchain.toml Upgrade to latest stable Rust and edition 2021 2023-02-24 18:29:37 -05:00
screenshots.png Update screenshots 2015-11-23 19:48:30 +00:00
Vagrantfile Fix Vagrantfile and extended tests 2021-01-11 18:55:06 +01:00

zetta

zetta builds on the awesome foundation of exa so we can add more features. When exa becomes maintained again, features could be merged back.

For simplicity, only installation method for now is cargo install.

this readme will be extended again, pending some rewrites / updates.

Screenshots of zetta


zetta is a modern replacement for the venerable file-listing command-line program ls that ships with Unix and Linux operating systems, giving it more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And its small, fast, and just one single binary.

By deliberately making some decisions differently, zetta attempts to be a more featureful, more user-friendly version of ls.


Command-line options

zettas options are almost, but not quite, entirely unlike lss.

Display options

  • -1, --oneline: display one entry per line
  • -G, --grid: display entries as a grid (default)
  • -l, --long: display extended details and attributes
  • -R, --recurse: recurse into directories
  • -T, --tree: recurse into directories as a tree
  • -x, --across: sort the grid across, rather than downwards
  • -F, --classify: display type indicator by file names
  • --colo[u]r: when to use terminal colours
  • --colo[u]r-scale: highlight levels of file sizes distinctly
  • --icons: display icons
  • --no-icons: don't display icons (always overrides --icons)

Filtering options

  • -a, --all: show hidden and 'dot' files
  • -d, --list-dirs: list directories like regular files
  • -L, --level=(depth): limit the depth of recursion
  • -r, --reverse: reverse the sort order
  • -s, --sort=(field): which field to sort by
  • --group-directories-first: list directories before other files
  • -D, --only-dirs: list only directories
  • --git-ignore: ignore files mentioned in .gitignore
  • -I, --ignore-glob=(globs): glob patterns (pipe-separated) of files to ignore

Pass the --all option twice to also show the . and .. directories.

Long view options

These options are available when running with --long (-l):

  • -b, --binary: list file sizes with binary prefixes
  • -B, --bytes: list file sizes in bytes, without any prefixes
  • -g, --group: list each files group
  • -h, --header: add a header row to each column
  • -H, --links: list each files number of hard links
  • -i, --inode: list each files inode number
  • -m, --modified: use the modified timestamp field
  • -S, --blocks: list each files number of file system blocks
  • -t, --time=(field): which timestamp field to use
  • -u, --accessed: use the accessed timestamp field
  • -U, --created: use the created timestamp field
  • -@, --extended: list each files extended attributes and sizes
  • --changed: use the changed timestamp field
  • --git: list each files Git status, if tracked or ignored
  • --time-style: how to format timestamps
  • --no-permissions: suppress the permissions field
  • --octal-permissions: list each file's permission in octal format
  • --no-filesize: suppress the filesize field
  • --no-user: suppress the user field
  • --no-time: suppress the time field

Some of the options accept parameters:

  • Valid --color options are always, automatic, and never.
  • Valid sort fields are accessed, changed, created, extension, Extension, inode, modified, name, Name, size, type, and none. Fields starting with a capital letter sort uppercase before lowercase. The modified field has the aliases date, time, and newest, while its reverse has the aliases age and oldest.
  • Valid time fields are modified, changed, accessed, and created.
  • Valid time styles are default, iso, long-iso, full-iso, and relative.

Installation

zetta is available for macOS and Linux.

Cargo

If you already have a Rust environment set up, you can use the cargo install command:

cargo install zetta

Cargo will build the zetta binary and place it in $HOME/.cargo.

To build without Git support, run cargo install --no-default-features zetta is also available, if the requisite dependencies are not installed.