A pretty system information tool written in POSIX sh.
Go to file
2019-09-24 14:58:42 +03:00
.github/workflows docs: update 2019-09-24 14:51:20 +03:00
.editorconfig docs: update 2019-09-24 14:58:42 +03:00
LICENSE.md initial commit 2019-09-24 10:33:23 +03:00
pfetch pfetch: only calculate alignment if function exists 2019-09-24 14:55:52 +03:00
README.md docs: update 2019-09-24 14:50:14 +03:00

pfetch

A pretty system information tool written in POSIX sh.

➜ pfetch
    ___       goldie@KISS
   (|      os     KISS Linux
   (<> |      host   Lenovo YOGA 900-13ISK
  / __  \     kernel 5.3.1-coffee
 ( /  \ /|    uptime 6h 20m
_/\ __)/_)    pkgs   130
\/-____\/     memory 1721MiB / 7942MiB

Configuration

pfetch is configured through environment variables.

# Which information to display.
# NOTE: If 'ascii' will be used, it must come first.
# Valid: space separated string
PF_INFO="ascii title distro host kernel uptime pkgs memory"

# Example: Only ASCII.
PF_INFO="ascii"

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

# Separator between info name and info data.
# Valid: string
PF_SEP=":"

# Color of info names:
# Valid: 0-9
PF_COL1=4

# Color of info data:
# Valid: 0-9
PF_COL2=7

# Alignment padding.
# Valid: int
PF_ALIGN=""

TODO

  • Store ascii "width" for dynamic padding.
  • OS support.
    • Linux
    • OpenBSD
    • FreeBSD
    • macOS
    • ???????
  • Add an environment variable for setting info.