fetch

[sh] MSYS2-compatible system info prompt
git clone https://git.torresjrjr.com/fetch.git
Log | Files | Refs | README | LICENSE

README.md (1301B)


      1 # fetch
      2 
      3 A small, colourful systems info prompt, written in hackable POSIX sh.
      4 Originally for [MSYS2][1] on Windows, compatible with UNIX-likes.
      5 
      6 	$ fetch
      7 	      ~       birb@nest Tue, 20 Apr 2021 14:00:00 +0100
      8 	     .-.      os      MSYS 3.1.7-340.x86_64
      9 	    /`v`\     uptime  9d 16h 33m -- Apr 10. 21:27
     10 	   (/   \)    shell   /usr/bin/bash
     11 	====="="===<  sshd    /usr/bin/sshd
     12 	     |_|      tmux    meh:4   astro:2   gmni:1   comm:2
     13 
     14 	$ fetch
     15 	      .       eve@vm03 Wed, 02 Mar 2022 17:11:43 +0000
     16 	     / \      os      Arch Linux 5.16.10-arch1-1
     17 	    /\  \     uptime  10d 23h 12m -- Feb 19. 17:58
     18 	   /     \    shell   /usr/bin/zsh
     19 	  /  .-. `\   sshd    b@pts/4   b@pts/12
     20 	 /.-    `-.\  tmux    0:4   hare:2   mail:5
     21 
     22 Overwrite functions locally at `$XDG_CONFIG_HOME/fetch/config.sh`.
     23 
     24 	# ~/.config/fetch/config.sh
     25 	graphic() {
     26 		# see formatters()
     27 		env printf "${c4}%s\n" \
     28 			'      .      ' \
     29 			'     / \     ' \
     30 			'    /\  \    ' \
     31 			'   /     \   ' \
     32 			'  /  .-. `\  ' \
     33 			' /.-    `-.\ '
     34 	}
     35 
     36 Send patches and questions to <~torresjrjr/public-inbox@lists.sr.ht>
     37 (see [mailing list etiquette][2] and [git-send-email.io][3]).
     38 
     39 License: GNU General Public License
     40 
     41 
     42   [1]: https://www.msys2.org/
     43   [2]: https://man.sr.ht/lists.sr.ht/etiquette.md
     44   [3]: https://git-send-email.io/