# Rsftch
##### _Lightning fast hardware fetch written in rust._
### Screenshots



### Supported distros
- Arch Linux
- Debian
- Fedora
- Endeavour OS
- Void Linux
- Ubuntu
- OpenSuse
- Raspbian
- Linux Mint
- MX Linux
- Gentoo
- Slackware
- NixOS
- Kali Linux
- CachyOS
- FreeBSD
- NetBSD
* Other distros wont have a custom title, only "Rust Fetch"
### Dependencies
- `pciutils`
### Installation
#### Cargo
`cargo install rsftch`
#### AUR
With your favourite AUR helper:
`aura -A rsftch-git`
`yay -S rsftch-git`
`paru -S rsftch-git`
Or from source:
```
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/rsftch-git.git
cd rsftch-git
makepkg -si
```
#### Source
```
git clone https://github.com/charklie/rsftch.git`
cd rsftch
cargo install --path .
```
Add this to your .bashrc / .zshrc if you already dont:
`export PATH="/home/$USER/.cargo/bin:$PATH"`
If you're using fish, run this command if you already haven't:
`set -U fish_user_paths ~/.cargo/bin/ $fish_user_paths`
#### NetBSD
If you're on NetBSD or, any supported pkgsrc platform, a pre-compiled binary is available from the official repositories.
To install it, simply run:
`pkgin install rsftch`
Or, if you prefer to build it from source:
```
cd /usr/pkgsrc/sysutils/rsftch
make install
```
### Usage
```
Usage: rsftch [OPTION...] [OVERRIDE]
-h, --help, --usage Bring up this menu
--no-color, --no-formatting
-nc, -nf Remove icons, colors and such.
-o, --override Override distribution, changes ASCII.
```
### Time comparison
- Rsftch: 19.72 milliseconds
- Neofetch: 284.03 milliseconds
- Screeenfetch: 832.59 milliseconds
- Hyfetch: 1.82 seconds (💀)
### Compatability
Currently Rsftch only works on GNU/Linux, (most) BSD distributions and (probably) Mac OS, although windows support is planned.
#### Todo
- [ ] Add more distros
- [ ] Rewrite memory function to rid of libmacchina dep.