minifetch

A minimal, cross-platform system information fetching tool written in Go.
It relies on native syscalls and standard library functions where possible, falling back to shell parsing only when necessary (e.g., CPU model names).

Features
- Cross-Platform: Supports Linux, macOS, and Windows.
- Zero Dependencies: Compiles to a single static binary.
- Information Fetched:
- User & Hostname
- OS & Architecture
- Shell & Desktop Environment
- CPU Model (Parsed from /proc/cpuinfo, sysctl, or PowerShell)
- Memory Usage (Used / Total)
- Disk Usage (Home directory specific)
- Local IP Address (via UDP dial trick)
Installation & Build
You need Go installed on your system.
git clone [https://github.com/ayzabar/minifetch.git](https://github.com/ayzabar/minifetch.git)
cd minifetch
go build -o minifetch main.go
./minifetch<img width="1026" height="850" alt="image" src="https://github.com/user-attachments/assets/9cc8c1c3-c3a4-4d39-9b6b-af3939bfd292" />
Cross-Compilation
To build a Windows executable from Linux or macOS:
GOOS=windows GOARCH=amd64 go build -o minifetch.exe main.go
License
MIT License.