A simple bash script that will generate a random ASCII art -OR- Quote when ran. Looks like this:
Welcome! USER@HOST
Your Current Directory is: $PWD
Time of Terminal Start: (HH:MM:SS)
Default Shell: ($SHELL)
About System:
CPU MODEL:
Memory Available:
Kernel:
____________________________________
ASCII ART/QUOTE
____________________________________
user@host $
Acts as a minimalist alternative to NeoFetch/pFetch
util-linux
FISH, BASH, ZSH, TCSH, and KSH
- In a terminal, type
$ chmod +x install.sh - In the same terminal, type:
$ ./installand run through Installation Process. - Run
$ sfetchor$ ls /usr/bin | grep sfetchto test if the command copied to the right directory
- In a terminal type:
$ chmod +x sfetch - In the same terminal, type
$ sudo cp sfetch /usr/bin(If not /usr/bin/, then wherever your CLI commands are held). - Run
$ sfetchor$ ls /usr/bin/sfetchto test if the command copied to the right directory
Installing to any shell:
- Edit your config file, (looks like
.*rcor check your shell's documentation for this) - Add
sfetchin it's own line - Source the
.rcfile with$ source path/to/.rcto restart your shell and enjoy!
!!! You can now easily create prompts for sfetch without superuser priviledges!
You may configure prompts from ~/.config/shellrandomgreeter/prompts/~
to do so, create a text file in .config/shellrandomgreeter/prompts and input whatever text you would like!
Unix Shells:
- ZSH
- BASH
- KSH
- FISH
- TCSH
Notes:
WinBash is sort of buggy, but I'll work it outWindows is depreciated.Should work just fine on MacOS-- Since Mac's utilize the ZSH shell and is a UNIX-like OS, but I haven't tested it yet.Upcoming update for better OS detection.lscpuis a part of thelinuxutilspackage.- Same goes for any other Unix-Like System. If any issues sprout up, pls post in the Bug Reports. Or email me @westwardfishdme@gmail.com :P
if you would rather call a specific quote, you may use sfetch [1,2,3....] which will then show that specific art/quote when running the script
Enjoy the script!