very very simple and very very lame snippet to print random images to the terminal
(written to understand how arrays work in bash)
- Shell 100%
| demo | Upload files to "demo" | |
| img | Upload files to "img" | |
| .gitignore | Update .gitignore | |
| LICENSE | Initial commit | |
| rand0m.sh | Update rand0m.sh | |
| README.md | Update README.md | |
rand0m 💻
very very simple and very very lame snippet to print random image to the terminal
(written to understand how arrays work in bash)
Description 📝
bash script that randomly select one image from a specific directory and prints it to the terminal using Chafa image-to-text converter
you can run it on terminal startup by adding rand0m.sh to your .bashrc
Installation 🛠️
- install Chafa in your system
- git clone this repo (or just copy
rand0m.shand use your own images) - edit the script by changing the images directory path
- make the script executable with
chmod +x rand0m.sh - have fun
Demo 🎞️
HOWTO:
STARTUP:
USING ANIMATIONS:
Known issues
if there are spaces in the file or directory names then it doesn't work (but I don't care, I won't fix this issue)
Notes
all the repo images are free and I got them from Iconfinder, Icon-Icons, Animated Noto Emoji website