Skip to content
🐧 A pretty system information tool written in POSIX sh.
Branch: master
Clone or download
Latest commit 9f55ffb Jan 26, 2020


Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows docs: update Sep 30, 2019
.editorconfig docs: update Sep 24, 2019 initial commit Sep 24, 2019 pfetch: Added PF_SOURCE. Closes #34 Jan 26, 2020
pfetch ascii: Fix format Jan 26, 2020


A pretty system information tool written in POSIX sh

The goal of this project is to implement a simple system information tool in POSIX sh using features built into the language itself (where possible).

The source code is highly documented and I hope it will act as a learning resource for POSIX sh and simple information detection across various different operating systems.

If anything in the source code is unclear or is lacking in its explanation, open an issue. Sometimes you get too close to something and you fail to see the "bigger picture"!

OS support

  • Linux
    • Alpine Linux, Arch Linux, Arco Linux, Artix Linux, CentOS, Debian, Elementary, Fedora, Gentoo, Guix, Hyperbola, KISS Linux, Linux Lite, Linux Mint, Mageia, Manjaro, MX Linux, NixOS, OpenSUSE, Parabola, Pop!_OS, PureOS, Slackware, Ubuntu and Void Linux.
    • All other distributions are supported with a generic penguin logo.
  • Android
  • BSD
    • DragonflyBSD, FreeBSD, NetBSD and OpenBSD.
  • Windows
    • Windows subsystem for Linux.
  • Haiku
  • MacOS
  • Minix
  • Solaris


pfetch is configured through environment variables.

# Which information to display.
# NOTE: If 'ascii' will be used, it must come first.
# Default: first example below
# Valid: space separated string
# OFF by default: shell editor wm de palette
PF_INFO="ascii title os host kernel uptime pkgs memory"

# Example: Only ASCII.

# Example: Only Information.
PF_INFO="title os host kernel uptime pkgs memory"

# A file to source before running pfetch.
# Default: unset
# Valid: A shell script

# Separator between info name and info data.
# Default: unset
# Valid: string

# Color of info names:
# Default: unset (auto)
# Valid: 0-9

# Color of info data:
# Default: unset (auto)
# Valid: 0-9

# Color of title data:
# Default: unset (auto)
# Valid: 0-9

# Alignment padding.
# Default: unset (auto)
# Valid: int

# Which ascii art to use.
# Default: unset (auto)
# Valid: string

# The below environment variables control more
# than just 'pfetch' and can be passed using
# 'HOSTNAME=cool_pc pfetch' to restrict their
# usage solely to 'pfetch'.

# Which user to display.

# Which hostname to display.

# Which editor to display.

# Which shell to display.

# Which desktop environment to display.


  • ufetch: Lots of ASCII logos.
    • Contrary to the belief of a certain youtuber, pfetch shares zero code with ufetch. Only some of the ASCII logos were used.
You can’t perform that action at this time.