willdoescode / nat
- понедельник, 26 октября 2020 г. в 00:23:41
Rust
⚡️ nat - the 'ls' replacement you never knew you needed ⚡️
Nat is a complete replacement for the 'ls' command
Nats features include
install the latest release from https://github.com/willdoescode/nat/releases/
then add the nat file to your path /usr/local/bin/
to alias ls to nat add
alias ls='nat'
``` in your zshrc at ~/.zshrc
### Installation Linux
```bash
apt-get install rustc cargo
cd /tmp
git clone https://github.com/willdoescode/nat.git
cd /tmp/nat
cargo build --release
cd target/release
./nat
To install nat locally
cd /tmp/nat
cargo install --path .
and add this line to your $HOME/.bashrc
export PATH=$PATH:$HOME/.cargo/bin
yay -S nat-git
in zshrc or bashrc
alias ls='nat'
nat <dir>
nat <dir (leave empty if in wanted dir)> -f <file>
git clone https://github.com/willdoescode/nat.git
cd nat
rm /usr/local/bin/nat