~torresjrjr/fetch

A POSIX sh sysinfo prompt, works on MSYS2

9899b1e Use env printf

3 months ago

5d20b4a Revert 015c94b "Use ps formatting to simplify..."

5 months ago

#fetch

A small, colourful systems info prompt, written in hackable POSIX sh. Originally for MSYS2 on Windows, compatible with UNIX-likes.

$ fetch
      ~       user@host Tue, 20 Apr 2021 14:00:00 +0100
     .-.      os      Msys
    /`v`\     kernel  MSYS_NT-10.0-19042 3.1.7-340.x86_64
   (/   \)    shell   /usr/bin/bash
====="="===<  sshd    user@pts/4   user@pts/12
     |_|      tmux    meh:4   astro:2   gmni:1   comm:2

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