Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denisde4ev/yetanother-5line-fetch

Simple 5 lines fetch. (2 versions written in bash and POSIX sh)
https://github.com/denisde4ev/yetanother-5line-fetch

bash neofetch posix-sh sh system-information termux windows-shell-script

Last synced: about 2 months ago
JSON representation

Simple 5 lines fetch. (2 versions written in bash and POSIX sh)

Awesome Lists containing this project

README

        

# Yet Another 5 Lines **Fetch** script (ya5lfetch)

## Example:

```
[arco, KDE] $ ya5lfetch
. arcowo@kpc /~
/ \ OS: ArcoLinux
/ . \ KERNEL: 5.18.15-arch1-1
/ / _ \ SHELL: bash
/` `\ DE: KDE

[artix, no DE] $ ya5lfetch
. u@artix /home/u
/ \ OS: Artix Linux
/. \ KERNEL: 5.18.12-artix1-1
/ * \ SHELL: bash
/ ' \ TTY: pts/1, ssh

[Termux, Android (RR ROM)]
$ [ -e "$PREFIX"/etc/os-release ] || echo 'NAME="Android"' >> "$PREFIX"/etc/os-release
$ ya5lfetch
u0_a300@dumpling /data/data/com.termux/files/home
╲_____╱ OS: Android
╱ . . ╲ KERNEL: 4.4.254-lineage+
▕ ▏SHELL: bash
▔▔▔▔▔▔▔ TTY: pts/3, ssh

[KISS, in chroot] $ ya5lfetch
root@kpc /tmp/_9754
+----+ OS: KISS Linux
| |/ | KERNEL: 5.18.15-arch1-1
| |\ | SHELL: ya5lfetch.sh
+----+ TTY: not a tty

[Alpine, in termux chroot] $ ya5lfetch
u99-_-@dumpling /root
. OS: Alpine Linux v3.11
/ \ KERNEL: 4.4.254-lineage+
/ \ /\ SHELL: bash
/◁ \ \ TTY: /dev/pts/1
```

TODO install and get linux kernel version and distros exact name:
- Arch
- Artix ✅
- Arco ✅
- Manjaro
- Alpine✅-
- KISS ✅-
- Debian
- Windows (wine)
- Termux/Android ✅
- for Space Invaders ASCII: LFS (hell no) / Bedrock linux / busybox based chroot ?