github

willdoescode / nat

  • понедельник, 26 октября 2020 г. в 00:23:41
https://github.com/willdoescode/nat

Rust
⚡️ nat - the 'ls' replacement you never knew you needed ⚡️



⚡️ nat ⚡️

banner

demo

What is nat?

Nat is a complete replacement for the 'ls' command

Nats features include

  • Showing file permissions
  • Showing file size
  • Showing the date that the file was modified last
  • Showing the user that the file belongs to
  • Showing the group that the file belongs to
  • An easy to use file search
  • A splash of color to distinguish between files and folders

Join the nat discord server

Highlights

  • A rather large german tech blog wrote an article about nat

Usage

Installation macOs

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

On Arch Linux

yay -S nat-git

Using nat with ls

in zshrc or bashrc

alias ls='nat'

Running

nat <dir>

Searching for file

nat <dir (leave empty if in wanted dir)> -f <file>

To edit the code

git clone https://github.com/willdoescode/nat.git
cd nat

Uninstall steps

rm /usr/local/bin/nat