Improve printf statements
Improve graphic()
Update README.md
A small, colourful systems info prompt, written in hackable POSIX sh. Originally for MSYS2 on Windows, compatible with UNIX-likes.
$ fetch
~ birb@nest Tue, 20 Apr 2021 14:00:00 +0100
.-. os MSYS 3.1.7-340.x86_64
/`v`\ uptime 9d 16h 33m -- Apr 10. 21:27
(/ \) shell /usr/bin/bash
====="="===< sshd /usr/bin/sshd
|_| tmux meh:4 astro:2 gmni:1 comm:2
$ fetch
. eve@vm03 Wed, 02 Mar 2022 17:11:43 +0000
/ \ os Arch Linux 5.16.10-arch1-1
/\ \ uptime 10d 23h 12m -- Feb 19. 17:58
/ \ shell /usr/bin/zsh
/ .-. `\ sshd b@pts/4 b@pts/12
/.- `-.\ tmux 0:4 hare:2 mail:5
Overwrite functions locally at $XDG_CONFIG_HOME/fetch/config.sh
.
# ~/.config/fetch/config.sh
graphic() {
# see formatters()
env printf "${c4}%s\n" \
' . ' \
' / \ ' \
' /\ \ ' \
' / \ ' \
' / .-. `\ ' \
' /.- `-.\ '
}
Send patches and questions to ~torresjrjr/public-inbox@lists.sr.ht (see mailing list etiquette and git-send-email.io).
License: GNU General Public License