AllIsHackedOff

Just a memo, just a progress

話題になっていたのでexaをインストール

話題になっていたのでexaをインストール

公式

exa公式

exa is a modern replacement for ls. 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. It also has extra features not present in the original ls, such as viewing the Git status for a directory, or recursing into directories with a tree view. exa is written in Rust, so it's small, fast, and portable.

gitの情報も表示してくれるlsの代用品だとな。 Rustで書かれているらしい。

Install

Rustが当然入っていないのでRustを入れる Homebrew対応してないのかなー

curl -s https://static.rust-lang.org/rustup.sh | sudo sh

必要らしいのでlibgit2とcmakeをintall

brew install cmake libgit2

Rustのインストールに少し時間かかる

使用感

ls にあるオプションは大抵ありそう -hをつければヘッダ行もわかって意味がわかりやすいし、tree表示も良さそう -tオプションだけ何故か動かないのは僕だけなんでしょうか manがないので慣れるまではREADMEを参照しつつですかね

memo

-1, --oneline: display one entry per line
-a, --all: show dot files
-b, --binary: use binary (power of two) file sizes
-B, --bytes: list file sizes in bytes, without prefixes
-d, --list-dirs: list directories as regular files
-g, --group: show group as well as user
-h, --header: show a header row
-H, --links: show number of hard links column
-i, --inode: show inode number column
-l, --long: display extended details and attributes
-r, --reverse: reverse sort order
-R, --recurse: recurse into subdirectories
-s, --sort=(field): field to sort by
-S, --blocks: show number of file system blocks
-t, --time: which timestamp to show for a file
-T, --tree: recurse into subdirectories in a tree view
-x, --across: sort multi-column view entries across