https://qiita.com/navitime_tech/items/c249269a3b47666c784b
Let's start with exa by looking at and trying to add more convenient things.
https://github.com/ogham/exa
cargo install exa
Was written. cargo
?? Nanisore ??
When I go around
Cargo is Rust's build system and package manager
I see. ..
It's easy to think that if it's annoying to put it in, let's quit.
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
.
.
.
stable installed - rustc 1.46.0 (04488afe3 2020-08-24)
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.
To configure your current shell run source $HOME/.cargo/env
It seems that a description that automatically passes the path has been added to .bash_profile (if it is different, please write it yourself)
cargo install exa
I tried the following to get used to inputting ll
etc. by hand and to use it like upward compatibility.
if [[ $(command -v exa) ]]; then
alias ll='exa --icons -la'
alias l1='exa -1'
alias lt='exa -Ta --icons -I "node_modules|.git|.cache|vendor|tmp"'
alias ltl='lt | less -r'
else
alias ll='ls -la'
alias l1='ls -1'
alias lt='tree -I "node_modules|.git|.cache|vendor|tmp"'
alias ltl='lt | less -r'
fi
It's a small difference, but I think that it will grow if we accumulate little by little improvement, so I would like to continue working on it.
Recommended Posts