README.md 1.8 KB
Newer Older
B
Ben S 已提交
1
# exa [![Build status](https://travis-ci.org/ogham/exa.svg)](https://travis-ci.org/ogham/exa)
B
Ben S 已提交
2

B
Ben S 已提交
3
[exa](http://bsago.me/exa) is a replacement for `ls` written in Rust.
B
Ben S 已提交
4 5


B
Ben S 已提交
6
## Screenshot
B
Ben S 已提交
7 8

![Screenshot of exa](https://raw.githubusercontent.com/ogham/exa/master/screenshot.png)
B
Ben S 已提交
9

B
Ben S 已提交
10 11

## Options
B
Ben S 已提交
12

B
Ben S 已提交
13
- **-1**, **--oneline**: display one entry per line
B
Ben S 已提交
14 15
- **-a**, **--all**: show dot files
- **-b**, **--binary**: use binary (power of two) file sizes
B
Ben S 已提交
16
- **-B**, **--bytes**: list file sizes in bytes, without prefixes
B
Ben S 已提交
17
- **-d**, **--list-dirs**: list directories as regular files
B
Ben S 已提交
18 19
- **-g**, **--group**: show group as well as user
- **-h**, **--header**: show a header row
B
Ben S 已提交
20
- **-H**, **--links**: show number of hard links column
B
Ben S 已提交
21
- **-i**, **--inode**: show inode number column
B
Ben S 已提交
22
- **-l**, **--long**: display extended details and attributes
B
Ben S 已提交
23
- **-r**, **--reverse**: reverse sort order
24
- **-R**, **--recurse**: recurse into subdirectories
B
Ben S 已提交
25
- **-s**, **--sort=(field)**: field to sort by
B
Ben S 已提交
26
- **-S**, **--blocks**: show number of file system blocks
B
Ben S 已提交
27
- **-t**, **--time**: which timestamp to show for a file
B
Ben S 已提交
28
- **-T**, **--tree**: recurse into subdirectories in a tree view
B
Ben S 已提交
29
- **-x**, **--across**: sort multi-column view entries across
B
Ben S 已提交
30

B
Ben S 已提交
31
You can sort by **name**, **size**, **ext**, **inode**, **modified**, **created**, **accessed**, or **none**.
B
Ben S 已提交
32

B
Ben S 已提交
33 34

## Installation
B
Ben S 已提交
35

36
exa is written in [Rust](http://www.rust-lang.org). You'll have to use the nightly -- I try to keep it up to date with the latest version when possible.  Once you have it set up, a simple `cargo build --release` will pull in all the dependencies and compile exa as `target/release/exa`.
B
Ben S 已提交
37 38

exa depends on [libgit2](https://github.com/alexcrichton/git2-rs) for certain features. If you're unable to compile libgit2, you can opt out of Git support by passing `--no-default-features` to Cargo.