github.com/dylanaraps/pfetch

🐧 A pretty system information tool written in POSIX sh.

Open this visualization on its own page →

Contributors

16

Lines of Code

358

From

2019-09-24

To

2020-11-16

About dylanaraps/pfetch

pfetch is a lightweight system information display tool written in POSIX shell script. It shows system details like OS, kernel, uptime, and hardware information in a visually appealing format with ASCII art logos. The project prioritizes simplicity and portability by using only POSIX shell features where possible, avoiding external dependencies.

The tool supports an impressive range of operating systems including numerous Linux distributions, BSD variants, macOS, Windows Subsystem for Linux, Android, Haiku, Solaris, IRIX, Minix, and SerenityOS. For Linux specifically, it recognizes and displays custom logos for over thirty different distributions while gracefully falling back to a generic penguin logo for unrecognized systems.

The codebase is intentionally highly documented and serves as an educational resource for learning POSIX shell scripting and cross-platform system information detection. Configuration is handled through environment variables, making it easy to customize behavior without modifying the source code. The project explicitly aims to be a learning tool, with the creator encouraging users to open issues if any part of the implementation is unclear.

Share this video