141 Commits
0.1 ... 0.6

Author SHA1 Message Date
Dylan Araps
675814f33e pfetch: Revert to larger but more reliable print method. Closes #46 2020-03-11 22:39:16 +02:00
Dylan Araps
2ef3584f5b various: Once again hide kernel. Related to #46 2020-03-11 22:25:02 +02:00
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
Dylan Araps
d706ec7a01 docs: update 2019-09-30 23:01:36 +03:00
Dylan Araps
c9d961836c solaris: comments 2019-09-30 20:08:27 +03:00
dylan
3a8ac8c53d Merge pull request #18 from Crestwave/solaris
pfetch: initial solaris support
2019-09-30 20:05:49 +03:00
Dylan Araps
fcd62e9043 better os-release handling, and sunos ascii 2019-09-30 20:02:36 +03:00
Crestwave
02a9bd84af pfetch: code style changes 2019-09-30 15:32:54 +08:00
Crestwave
a9af270b96 pfetch: initial solaris support 2019-09-30 15:18:09 +08:00
Dylan Araps
9985e6cfe9 pfetch: fix whoami not posix 2019-09-30 09:25:39 +03:00
Dylan Araps
0977e5f1a1 docs: update 2019-09-29 17:25:26 +03:00
Dylan Araps
8ff9d722b5 memory: netBSD fix 2019-09-29 16:59:08 +03:00
Dylan Araps
ca4004de90 uptime: bug fix 2019-09-29 16:28:43 +03:00
Dylan Araps
ee6e1bd390 memory: bug fix 2019-09-29 16:27:45 +03:00
Dylan Araps
c888f4cdca pfetch: fix dragonfly issues 2019-09-29 16:20:16 +03:00
Dylan Araps
1363a973d4 misc: clean up 2019-09-29 13:20:27 +03:00
Dylan Araps
7e70668ce7 kiss: faster package list' 2019-09-29 12:24:18 +03:00
Dylan Araps
935fd295dd docs: update 2019-09-29 12:21:16 +03:00
Dylan Araps
5648839b55 pfetch: Ubuntu support 2019-09-29 12:21:07 +03:00
Dylan Araps
d79c2f20d5 docs: update 2019-09-29 11:46:15 +03:00
Dylan Araps
24e063479a docs: update 2019-09-29 09:32:42 +03:00
Dylan Araps
3a562917c3 pfetch: initial DragonflyBSD support 2019-09-29 09:19:35 +03:00
Dylan Araps
300f31c5cd memory: fix issue in yash 2019-09-28 17:18:18 +03:00
Dylan Araps
f4bb7a3da8 pfetch: initial dragonfly support 2019-09-28 16:50:49 +03:00
Dylan Araps
09c179f6f5 docs: update 2019-09-28 15:56:13 +03:00
Dylan Araps
b85ec5657d docs: update 2019-09-28 15:04:05 +03:00
Dylan Araps
6b46e941cd fix more minixisms 2019-09-28 15:02:44 +03:00
Dylan Araps
180c00173a fix more minixisms 2019-09-28 15:00:45 +03:00
Dylan Araps
be6b5ae5ed minix's sh requires all variables have default values 2019-09-28 14:56:12 +03:00
Dylan Araps
c6f46d5428 pfetch: portability with minix 2019-09-28 14:49:34 +03:00
Dylan Araps
a43a697551 fix arithmetic in minix 2019-09-28 14:41:57 +03:00
Dylan Araps
8b801b8b50 pfetch: minix support 2019-09-28 14:31:10 +03:00
Dylan Araps
c9c27ba54b initial minux support 2019-09-28 13:11:49 +03:00
Dylan Araps
090fe64dec guix: simpler package list 2019-09-28 12:57:23 +03:00
Dylan Araps
fddfe5435c docs: update 2019-09-28 12:21:36 +03:00
Dylan Araps
a7d1a6d980 docs: update 2019-09-28 12:20:15 +03:00
Dylan Araps
6c50390f78 docs: update 2019-09-28 12:16:51 +03:00
Dylan Araps
ec69fcb195 docs: update 2019-09-28 12:13:16 +03:00
Dylan Araps
599db8dc83 docs: update 2019-09-28 12:12:20 +03:00
Dylan Araps
7d343f9d62 haiku: comment 2019-09-28 11:51:40 +03:00
3 changed files with 733 additions and 280 deletions

View File

@@ -6,4 +6,6 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run shellcheck.
run: shellcheck pfetch
run: |
shellcheck pfetch
TERM=dumb sh pfetch

105
README.md
View File

@@ -1,53 +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
➜ pfetch
___ goldie@KISS
(| os KISS Linux
(<> | host Lenovo YOGA 900-13ISK
/ __ \ kernel 5.3.1-coffee
( / \ /| uptime 6h 20m
_/\ __)/_) pkgs 130
\/-____\/ memory 1721M / 7942M
```
<br>
<br>
<br>
<br>
## OS support
- [x] Linux (A myriad of distributions)
- [x] MacOS
- [x] OpenBSD
- [x] FreeBSD
- [x] NetBSD
- [x] Haiku
## 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.
- [ ] Solaris ([#5](https://github.com/dylanaraps/pfetch/issues/5))
- [ ] 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*)
- **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**
- **IRIX**
## Configuration
@@ -59,14 +49,19 @@ _/\ __)/_) pkgs 130
# Default: first example below
# Valid: space separated string
#
# OFF by default: shell palette
PF_INFO="ascii title distro host kernel uptime pkgs memory"
# OFF by default: shell editor wm de palette
PF_INFO="ascii title os host kernel uptime pkgs memory"
# Example: Only ASCII.
PF_INFO="ascii"
# Example: Only Information.
PF_INFO="title distro 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.
# Default: unset
@@ -97,6 +92,26 @@ PF_ALIGN=""
# Default: unset (auto)
# Valid: string
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

894
pfetch

File diff suppressed because it is too large Load Diff