102 Commits
0.2 ... 0.5.0

Author SHA1 Message Date
Dylan Araps
aa22d4e32d pfetch: bold ascii 2020-03-10 12:27:37 +02:00
Dylan Araps
c0d0d65aa0 pfetch: Fix blank lines 2020-03-10 12:26:29 +02:00
Dylan Araps
a8a3e1f2fe docs: update 2020-03-10 00:08:47 +02:00
dylan
8633671f99 Merge pull request #45 from dylanaraps/irix
pfetch: Initial IRIX support.
2020-03-10 00:07:03 +02:00
Dylan Araps
577e8483a7 irix: ASCII 2020-03-10 00:06:06 +02:00
Dylan Araps
6558b34254 irix: kernel information 2020-03-09 23:41:13 +02:00
Dylan Araps
542b6af284 Merge branch 'master' into irix 2020-03-09 23:26:41 +02:00
Dylan Araps
177d77c335 irix: Fix support 2020-03-09 23:25:30 +02:00
Dylan Araps
e2068c61d5 IRIX: Packages support 2020-03-09 23:07:42 +02:00
Dylan Araps
39f767e45b irix: Uptime support. 2020-03-09 22:57:10 +02:00
Dylan Araps
b2aac93208 irix: Memory usage 2020-03-09 22:48:23 +02:00
Dylan Araps
271458be6e pfetch: Fixed posix change 2020-03-09 15:24:49 +02:00
Dylan Araps
9fc34b0000 pfetch: Revert prior change 2020-03-09 15:18:50 +02:00
Dylan Araps
3bb449700c pfetch: posix 2020-03-09 14:50:06 +02:00
Dylan Araps
f82f5e9d2d pfetch: Remove non-posix dot 2020-03-09 13:59:58 +02:00
Dylan Araps
be111026b1 ascii: Remove blank line 2020-03-09 12:30:11 +02:00
Dylan Araps
4cfef9c1e4 pfetch: Initial IRIX support. 2020-03-09 12:27:53 +02:00
Dylan Araps
c1cecae824 pfetch: Minix host information 2020-03-09 08:29:35 +02:00
Dylan Araps
f5b527d852 docs: update 2020-03-07 17:52:25 +02:00
dylan
2bf774e70f Merge pull request #44 from paradigm/master
pfetch: Add support for Bedrock
2020-03-07 17:50:55 +02:00
Daniel Thau
25324687b5 pfetch: Add support for Bedrock
Bedrock mimics other distros.  Part of doing so involves having distro
identifiers such as /etc/os-release look like those from other distros.
It must thus be special cased to be detected properly.

Bedrock typically includes /bedrock/cross/* entries in its $PATH.
However, they may be dropped as a hint to Bedrock-aware software that
they should act as though they were not Bedrock aware.  The $PATH check
is thus used to have pfetch conditionally disable the Bedrock special
casing even on Bedrock systems.

pfetch package count detection fails to consider repeated instances of a
given package manager.  Correcting this for the Bedrock specific concern
is purposefully eschewed for the sake of simplicity.  It may be
revisited later once Bedrock's Package Manager Manager ("pmm") feature
stabilizes.
2020-03-07 10:01:50 -05:00
Dylan Araps
f15a8d25dd docs: update 2020-03-07 14:48:17 +02:00
Dylan Araps
361a46df60 docs: update 2020-03-07 14:41:33 +02:00
Dylan Araps
9f55ffb5aa ascii: Fix format 2020-01-26 22:44:05 +02:00
Dylan Araps
364223cb48 ascii: Fix format 2020-01-26 22:38:04 +02:00
Dylan Araps
7094147013 ascii: Fix format 2020-01-26 22:33:51 +02:00
Dylan Araps
8d1b579b39 docs: update 2020-01-26 22:26:35 +02:00
Dylan Araps
32743859da pfetch: misc 2020-01-26 22:24:34 +02:00
Dylan Araps
c36607909b pfetch: OpenWrt support. Closes #37 2020-01-26 22:17:23 +02:00
Dylan Araps
a7b0439aeb pfetch: Added PF_SOURCE. Closes #34 2020-01-26 22:08:57 +02:00
dylan
0dcc4d6a82 Merge pull request #35 from dylanaraps/sync
pfetch: print without cursor movement
2020-01-26 22:05:58 +02:00
Dylan Araps
67204770ac pfetch: Add support for Endeavour 2020-01-03 09:48:20 +02:00
Dylan Araps
4524a3cc0a pkgs: support for solus 2019-11-18 15:56:21 +00:00
Dylan Araps
4f7617208d pkgs: openwrt support 2019-11-10 10:39:18 +00:00
Dylan Araps
8dd5981fbc pfetch: remove cursor movement for palette 2019-11-09 16:44:28 +00:00
Dylan Araps
24498852fd pfetch: minor fixes 2019-11-03 01:42:45 +00:00
Dylan Araps
a1bbe9749c pfetch: fix bugs 2019-11-03 00:45:53 +00:00
Dylan Araps
c9b4d26084 pfetch: print without cursor movement 2019-11-03 00:43:07 +00:00
Dylan Araps
1045166df2 wm: Add fallback to non-EWMH WMs 2019-10-20 00:00:02 +03:00
Dylan Araps
5893e26575 docs: update 2019-10-18 21:10:15 +03:00
Dylan Araps
14261f0fa1 docs: update 2019-10-18 21:07:45 +03:00
Dylan Araps
40d78a9b26 pfetch: revert sed removal 2019-10-18 21:07:08 +03:00
Dylan Araps
729f553d87 pfetch: Fix incorrect host output. Closes #29 2019-10-15 10:55:45 +03:00
Dylan Araps
6c3d5c3a87 pfetch: Fix android sed 2019-10-14 09:53:12 +03:00
Dylan Araps
616e1b0c3b pfetch: fix android issues 2019-10-14 09:04:15 +03:00
Dylan Araps
44dca45301 Merge branch 'master' of github.com:dylanaraps/pfetch 2019-10-14 08:45:25 +03:00
Dylan Araps
256c1678d6 pfetch: fix package count. 2019-10-14 08:45:07 +03:00
dylan
a3bdc11167 Merge pull request #26 from turquoise-hexagon/master
pfetch: crux pkgs count support
2019-10-06 12:56:26 +03:00
turquoise-hexagon
2bc0fd87a5 add support for crux pkgs count 2019-10-06 11:21:59 +02:00
Dylan Araps
8b9c409650 macOS: fix memory issue 2019-10-03 21:06:51 +03:00
Dylan Araps
52617b2e6e arch: new logo 2019-10-03 18:34:32 +03:00
Dylan Araps
77dce6a678 freebsd: better ascii 2019-10-03 13:59:36 +03:00
Dylan Araps
812f9ef231 docs: update 2019-10-03 12:30:25 +03:00
Dylan Araps
87effdbc5a host: add another dummy word 2019-10-03 12:29:31 +03:00
Dylan Araps
3f5845e20c pfetch: android support 2019-10-03 10:18:34 +03:00
Dylan Araps
c94e2c5d9d wm: handle non-matches 2019-10-02 15:36:09 +03:00
Dylan Araps
d8d8899ad2 macOS: Fix port false positive 2019-10-01 23:24:26 +03:00
Dylan Araps
1ff17055b9 pfetch: fix bug 2019-10-01 15:09:43 +03:00
Dylan Araps
d1d3b7b740 pfetch: fix bug 2019-10-01 15:07:50 +03:00
Dylan Araps
9564246e6c pfetch: fix bug 2019-10-01 15:06:37 +03:00
Dylan Araps
08d9834854 pfetch: fix bug 2019-10-01 15:05:42 +03:00
Dylan Araps
b7c7bc6c4c pfetch: fix bug 2019-10-01 15:03:56 +03:00
Dylan Araps
11d1c2e789 docs: update 2019-10-01 11:19:52 +03:00
Dylan Araps
55408239db docs: update 2019-10-01 11:19:32 +03:00
Dylan Araps
35ae795068 docs: update 2019-10-01 11:18:59 +03:00
Dylan Araps
e1228975fd docs: update 2019-10-01 11:17:57 +03:00
Dylan Araps
4d1be75c20 docs: update 2019-10-01 11:13:45 +03:00
Dylan Araps
8d1ab2d0dd docs: update 2019-10-01 11:13:13 +03:00
Dylan Araps
301c52dd5f docs: update 2019-10-01 11:12:55 +03:00
Dylan Araps
0d1a340ef2 docs: update 2019-10-01 11:12:16 +03:00
Dylan Araps
49a3db1653 docs: update 2019-10-01 11:03:39 +03:00
Dylan Araps
d828d1e718 docs: update 2019-10-01 11:02:48 +03:00
Dylan Araps
9963de75d5 docs: update 2019-10-01 11:02:31 +03:00
Dylan Araps
3e58031fe0 docs: update 2019-10-01 11:01:38 +03:00
Dylan Araps
405fc20eef docs: update 2019-10-01 11:00:58 +03:00
Dylan Araps
133d63137c docs: update 2019-10-01 11:00:01 +03:00
Dylan Araps
3686c06238 docs: update 2019-10-01 10:59:35 +03:00
Dylan Araps
c20823937c pfetch: added Android ascii 2019-10-01 09:50:08 +03:00
Dylan Araps
177f30b72f docs: update 2019-10-01 09:27:58 +03:00
Dylan Araps
aea34f832c docs: update 2019-10-01 02:01:10 +03:00
Dylan Araps
6829866ba9 docs: update 2019-10-01 02:00:36 +03:00
Dylan Araps
f7180ec8a7 docs: update 2019-10-01 01:59:01 +03:00
Dylan Araps
777a64b4b1 docs: update 2019-10-01 01:58:16 +03:00
Dylan Araps
765dc077e7 docs: update 2019-10-01 01:55:53 +03:00
Dylan Araps
2e3da189ca pfetch: smarter terminal sequence handling 2019-10-01 01:52:32 +03:00
Dylan Araps
344086b464 github: check st-256color value 2019-10-01 01:38:19 +03:00
Dylan Araps
e0b082423f github: abuse CI to test escape sequence detection 2019-10-01 01:06:07 +03:00
Dylan Araps
66e0bfe709 github: abuse CI to test escape sequence detection 2019-10-01 01:05:17 +03:00
Dylan Araps
c97120b82f docs: update 2019-10-01 00:54:16 +03:00
Dylan Araps
46b68022a3 pfetch: Simpler WSL2 detection. 2019-10-01 00:49:54 +03:00
Dylan Araps
146c6b6bae pfetch: Fix WSL2 detection. 2019-10-01 00:44:22 +03:00
Dylan Araps
d8becf6692 docs: update 2019-10-01 00:19:33 +03:00
Dylan Araps
887df06b6a pfetch: wm support for Xorg 2019-10-01 00:18:58 +03:00
Dylan Araps
a6b4b085fb docs: update 2019-10-01 00:00:27 +03:00
Dylan Araps
cfc0e8e4d0 docs: update 2019-09-30 23:55:57 +03:00
Dylan Araps
29b09c8622 pfetch: de and editor support 2019-09-30 23:53:25 +03:00
Dylan Araps
6c2ffdd07e docs: update 2019-09-30 23:38:24 +03:00
Dylan Araps
8974dad27a docs: update 2019-09-30 23:37:36 +03:00
Dylan Araps
9442360c09 docs: update 2019-09-30 23:20:07 +03:00
Dylan Araps
ee265316d9 docs: update 2019-09-30 23:19:27 +03:00
Dylan Araps
442a2ba217 docs: update 2019-09-30 23:18:56 +03:00
Dylan Araps
120e8a8760 docs: update 2019-09-30 23:16:03 +03:00
3 changed files with 611 additions and 387 deletions

View File

@@ -8,4 +8,4 @@ jobs:
- name: Run shellcheck. - name: Run shellcheck.
run: | run: |
shellcheck pfetch shellcheck pfetch
sh pfetch TERM=dumb sh pfetch

130
README.md
View File

@@ -1,82 +1,43 @@
# pfetch <p align="center"><img src="https://user-images.githubusercontent.com/6799467/65944518-68834d80-e421-11e9-9b14-6ca26a16108a.png" width="350px"></p>
<h1 align="center">pfetch</h1>
<p align="center">A pretty system information tool written in POSIX sh</p><br>
A pretty system information tool written in POSIX `sh`. <img src="https://user-images.githubusercontent.com/6799467/65945384-5bfff480-e423-11e9-863e-4e7cf16eb648.png" width="40%" align="right">
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 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. 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"! 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"!
```sh <br>
➜ pfetch <br>
___ goldie@KISS <br>
(| os KISS Linux <br>
(<> | host Lenovo YOGA 900-13ISK
/ __ \ kernel 5.3.1-coffee
( / \ /| uptime 6h 20m
_/\ __)/_) pkgs 130
\/-____\/ memory 1721M / 7942M
```
## OS support ## OS support
- Linux - **Linux**
- Alpine 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.
- Arch Linux - All other distributions are supported with a generic penguin logo.
- Arco Linux - **Android**
- Artix Linux - **BSD**
- CentOS - DragonflyBSD, FreeBSD, NetBSD and OpenBSD.
- Debian - **Windows**
- Elementary - Windows subsystem for Linux.
- Fedora - **Haiku**
- Gentoo - **MacOS**
- Guix - **Minix**
- Hyperbola - **Solaris**
- KISS Linux - **IRIX**
- Linux Lite
- Linux Mint
- Mageia
- Manjaro
- MX Linux
- NixOS
- OpenSUSE
- Parabola
- Pop!\_OS
- PureOS
- Slackware
- Ubuntu
- Void Linux
- BSD
- DragonflyBSD
- FreeBSD
- NetBSD
- OpenBSD
- MacOS
- Haiku
- Minix
- Solaris
## TODO
- [ ] Add optional and additional information detection.
- [ ] CPU
- [ ] Terminal Emulator ([#12](https://github.com/dylanaraps/pfetch/pull/12))
- The way I implement this in `neofetch` is interesting.
- [x] Terminal colors ([commit](https://github.com/dylanaraps/pfetch/commit/ba03cb3cf4dfbc767abce6acd53c07ab5568e23d))
- [ ] Window manager ([#13](https://github.com/dylanaraps/pfetch/pull/13))
- [ ] ???
- [ ] Expand operating system support.
- [x] Solaris ([#5](https://github.com/dylanaraps/pfetch/issues/5))
- [x] MINIX ([#6](https://github.com/dylanaraps/pfetch/issues/6))
- [ ] AIX ([#7](https://github.com/dylanaraps/pfetch/issues/7))
- [ ] IRIX ([#8](https://github.com/dylanaraps/pfetch/issues/8))
- [ ] FreeMiNT ([#9](https://github.com/dylanaraps/pfetch/issues/9))
- [ ] Windows ([#10](https://github.com/dylanaraps/pfetch/issues/10))
- [ ] CYGWIN
- [ ] MSYS
- [ ] MINGW
- [x] WSL (*this is fairly simple*)
## Configuration ## Configuration
@@ -88,7 +49,7 @@ _/\ __)/_) pkgs 130
# Default: first example below # Default: first example below
# Valid: space separated string # Valid: space separated string
# #
# OFF by default: shell palette # OFF by default: shell editor wm de palette
PF_INFO="ascii title os host kernel uptime pkgs memory" PF_INFO="ascii title os host kernel uptime pkgs memory"
# Example: Only ASCII. # Example: Only ASCII.
@@ -97,6 +58,11 @@ PF_INFO="ascii"
# Example: Only Information. # Example: Only Information.
PF_INFO="title os host kernel uptime pkgs memory" PF_INFO="title os host kernel uptime pkgs memory"
# A file to source before running pfetch.
# Default: unset
# Valid: A shell script
PF_SOURCE=""
# Separator between info name and info data. # Separator between info name and info data.
# Default: unset # Default: unset
# Valid: string # Valid: string
@@ -126,6 +92,26 @@ PF_ALIGN=""
# Default: unset (auto) # Default: unset (auto)
# Valid: string # Valid: string
PF_ASCII="openbsd" PF_ASCII="openbsd"
# 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.
USER=""
# Which hostname to display.
HOSTNAME=""
# Which editor to display.
EDITOR=""
# Which shell to display.
SHELL=""
# Which desktop environment to display.
XDG_CURRENT_DESKTOP=""
``` ```
## Credit ## Credit

866
pfetch

File diff suppressed because it is too large Load Diff